aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index 54159aa6fa..1b694e711c 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -510,7 +510,7 @@ int AgiEngine::loadGame(const char *fileName, bool checkId) {
const char *AgiEngine::getSavegameFilename(int num) {
static Common::String saveLoadSlot;
char extension[5];
- snprintf(extension, sizeof(extension), ".%3d", num);
+ snprintf(extension, sizeof(extension), ".%.3d", num);
saveLoadSlot = _targetName + extension;
return saveLoadSlot.c_str();