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

Safer and less portability issues.
This commit is contained in:
D G Turner 2011-06-02 18:02:12 +01:00
parent 477d6233c3
commit 5015d12142
4 changed files with 65 additions and 76 deletions

View file

@ -36,9 +36,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;
}