TOUCHE: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
This commit is contained in:
parent
37886ba7bb
commit
9607aae5be
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue