fix wrong format string (bug tracker #2455138)

svn-id: r35459
This commit is contained in:
Gregory Montoir 2008-12-21 09:09:59 +00:00
parent 587e70809a
commit 695c431146

View File

@ -174,11 +174,11 @@ uint8 *TuckerEngine::loadFile(uint8 *p) {
} else if (strcmp(_fileToLoad, "charsize.dta") == 0) {
strcpy(_fileToLoad, "charszgr.dta");
} else if (strncmp(_fileToLoad, "objtxt", 6) == 0) {
const int num = _fileToLoad[6];
snprintf(_fileToLoad, sizeof(_fileToLoad), "objtx%dgr.c", num);
const char num = _fileToLoad[6];
snprintf(_fileToLoad, sizeof(_fileToLoad), "objtx%cgr.c", num);
} else if (strncmp(_fileToLoad, "pt", 2) == 0) {
const int num = _fileToLoad[2];
snprintf(_fileToLoad, sizeof(_fileToLoad), "pt%dtxtgr.c", num);
const char num = _fileToLoad[2];
snprintf(_fileToLoad, sizeof(_fileToLoad), "pt%ctxtgr.c", num);
}
}
_fileLoadSize = 0;