aboutsummaryrefslogtreecommitdiff
path: root/engines/touche
diff options
context:
space:
mode:
authorD G Turner2011-06-02 03:17:34 +0100
committerD G Turner2011-06-02 03:17:34 +0100
commit9607aae5be260666656a35ef3468f9669555f9e7 (patch)
tree3b4d8c5ad4aed85ee43d45ff09a63d2691e6afea /engines/touche
parent37886ba7bb53b1df1bf69c3e43c13b01639a6f80 (diff)
downloadscummvm-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.cpp4
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;
}