aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/detection.cpp
diff options
context:
space:
mode:
authorD G Turner2011-06-02 18:02:12 +0100
committerD G Turner2011-06-02 18:02:12 +0100
commit5015d12142ea80aec251e7fd4953019df964c0ff (patch)
treea712b437c259bc9d4571bfac3cbe123bddaca2c5 /engines/tucker/detection.cpp
parent477d6233c3672d9a60cceea3570bc775df3d9253 (diff)
downloadscummvm-rg350-5015d12142ea80aec251e7fd4953019df964c0ff.tar.gz
scummvm-rg350-5015d12142ea80aec251e7fd4953019df964c0ff.tar.bz2
scummvm-rg350-5015d12142ea80aec251e7fd4953019df964c0ff.zip
TUCKER: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
Diffstat (limited to 'engines/tucker/detection.cpp')
-rw-r--r--engines/tucker/detection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/tucker/detection.cpp b/engines/tucker/detection.cpp
index 9b466d682d..31d9caef73 100644
--- a/engines/tucker/detection.cpp
+++ b/engines/tucker/detection.cpp
@@ -201,8 +201,7 @@ public:
}
for (int slot = 0; slot <= Tucker::kLastSaveSlot; ++slot) {
if (slotsTable[slot]) {
- char description[64];
- snprintf(description, sizeof(description), "savegm.%02d", slot);
+ Common::String description = Common::String::format("savegm.%02d", slot);
saveList.push_back(SaveStateDescriptor(slot, description));
}
}