diff options
author | D G Turner | 2011-06-02 03:17:34 +0100 |
---|---|---|
committer | D G Turner | 2011-06-02 03:17:34 +0100 |
commit | 9607aae5be260666656a35ef3468f9669555f9e7 (patch) | |
tree | 3b4d8c5ad4aed85ee43d45ff09a63d2691e6afea /engines/touche | |
parent | 37886ba7bb53b1df1bf69c3e43c13b01639a6f80 (diff) | |
download | scummvm-rg350-9607aae5be260666656a35ef3468f9669555f9e7.tar.gz scummvm-rg350-9607aae5be260666656a35ef3468f9669555f9e7.tar.bz2 scummvm-rg350-9607aae5be260666656a35ef3468f9669555f9e7.zip |
TOUCHE: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
Diffstat (limited to 'engines/touche')
-rw-r--r-- | engines/touche/saveload.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/touche/saveload.cpp b/engines/touche/saveload.cpp index 82ed03ad45..334f75a0e8 100644 --- a/engines/touche/saveload.cpp +++ b/engines/touche/saveload.cpp @@ -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; } |