From eef56e167e481e413bd4c616e7c915e834c74726 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 14 Feb 2016 14:50:31 +0100 Subject: WAGE: Simplify savename generation code --- engines/wage/detection.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/wage') diff --git a/engines/wage/detection.cpp b/engines/wage/detection.cpp index fd79eb69d3..e03c447484 100644 --- a/engines/wage/detection.cpp +++ b/engines/wage/detection.cpp @@ -216,9 +216,7 @@ SaveStateList WageMetaEngine::listSaves(const char *target) const { int WageMetaEngine::getMaximumSaveSlot() const { return 999; } void WageMetaEngine::removeSaveState(const char *target, int slot) const { - char fileName[MAXPATHLEN]; - sprintf(fileName, "%s.%03d", target, slot); - g_system->getSavefileManager()->removeSavefile(fileName); + g_system->getSavefileManager()->removeSavefile(Common::String::format("%s.%03d", target, slot)); } #if PLUGIN_ENABLED_DYNAMIC(WAGE) -- cgit v1.2.3