From 5015d12142ea80aec251e7fd4953019df964c0ff Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 2 Jun 2011 18:02:12 +0100 Subject: TUCKER: Replace snprintf() usage with Common::String::format() Safer and less portability issues. --- engines/tucker/detection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/tucker/detection.cpp') 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)); } } -- cgit v1.2.3