mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
SCUMM: Fix deepcode warning from multifont load method
- use snprintf() instead of sprintf()
This commit is contained in:
parent
345771f574
commit
0818564531
@ -73,7 +73,7 @@ void ScummEngine::loadCJKFont() {
|
||||
_2byteHeight = 0;
|
||||
for (int i = 0; i < 20; i++) {
|
||||
char fontFile[256];
|
||||
sprintf(fontFile, "korean%02d.fnt", i);
|
||||
snprintf(fontFile, sizeof(fontFile), "korean%02d.fnt", i);
|
||||
_2byteMultiFontPtr[i] = NULL;
|
||||
if (fp.open(fontFile)) {
|
||||
_numLoadedFont++;
|
||||
|
Loading…
Reference in New Issue
Block a user