TUCKER: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
This commit is contained in:
parent
477d6233c3
commit
5015d12142
4 changed files with 65 additions and 76 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue