diff options
author | D G Turner | 2011-06-02 18:02:12 +0100 |
---|---|---|
committer | D G Turner | 2011-06-02 18:02:12 +0100 |
commit | 5015d12142ea80aec251e7fd4953019df964c0ff (patch) | |
tree | a712b437c259bc9d4571bfac3cbe123bddaca2c5 /engines/tucker/detection.cpp | |
parent | 477d6233c3672d9a60cceea3570bc775df3d9253 (diff) | |
download | scummvm-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.cpp | 3 |
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)); } } |