aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPino Toscano2014-12-22 22:43:46 +0100
committerPino Toscano2014-12-22 23:10:31 +0100
commite8fd25e22f4bce6f6df1a49115ece58bc76bdda3 (patch)
tree481a1170d8531e9a10775886fd291c9ed4f6d393 /engines
parentcfd00ad6afc09ca6990ce905b1a8db4ea1ad1602 (diff)
downloadscummvm-rg350-e8fd25e22f4bce6f6df1a49115ece58bc76bdda3.tar.gz
scummvm-rg350-e8fd25e22f4bce6f6df1a49115ece58bc76bdda3.tar.bz2
scummvm-rg350-e8fd25e22f4bce6f6df1a49115ece58bc76bdda3.zip
DRASCULA: use Common::String::format when possible
Use Common::String::format instead of a MAXPATHLEN-sized char[] buffer.
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/detection.cpp3
1 files changed, 1 insertions, 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);