From e8fd25e22f4bce6f6df1a49115ece58bc76bdda3 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 22 Dec 2014 22:43:46 +0100 Subject: DRASCULA: use Common::String::format when possible Use Common::String::format instead of a MAXPATHLEN-sized char[] buffer. --- engines/drascula/detection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp index 833363669d..a84bd11cb1 100644 --- a/engines/drascula/detection.cpp +++ b/engines/drascula/detection.cpp @@ -382,8 +382,7 @@ SaveStateList DrasculaMetaEngine::listSaves(const char *target) const { } SaveStateDescriptor DrasculaMetaEngine::querySaveMetaInfos(const char *target, int slot) const { - char fileName[MAXPATHLEN]; - sprintf(fileName, "%s.%03d", target, slot); + Common::String fileName = Common::String::format("%s.%03d", target, slot); Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(fileName); -- cgit v1.2.3