TOUCHE: Replace snprintf() usage with Common::String::format()

Safer and less portability issues.
This commit is contained in:
D G Turner 2011-06-02 03:17:34 +01:00
parent 37886ba7bb
commit 9607aae5be

View file

@ -380,9 +380,7 @@ Common::String generateGameStateFileName(const char *target, int slot, bool pref
if (prefixOnly) {
name += ".*";
} else {
char slotStr[16];
snprintf(slotStr, sizeof(slotStr), ".%d", slot);
name += slotStr;
name += Common::String::format(".%d", slot);
}
return name;
}