From 695c431146a8ffff1adc9f5547dba2c53722dd9e Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Sun, 21 Dec 2008 09:09:59 +0000 Subject: [PATCH] fix wrong format string (bug tracker #2455138) svn-id: r35459 --- engines/tucker/resource.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/tucker/resource.cpp b/engines/tucker/resource.cpp index c9f73739ed6..812078d50f4 100644 --- a/engines/tucker/resource.cpp +++ b/engines/tucker/resource.cpp @@ -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;