aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/detection.cpp4
1 files changed, 1 insertions, 3 deletions
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)