SCUMM: Fix deepcode warning from multifont load method

- use snprintf() instead of sprintf()
This commit is contained in:
wonst719 2020-11-06 18:05:20 +09:00 committed by Eugene Sandulenko
parent 345771f574
commit 0818564531

View File

@ -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++;