diff options
author | Willem Jan Palenstijn | 2009-05-10 21:20:33 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-05-10 21:20:33 +0000 |
commit | 2a485abd6d03f94813f6e88904af07f709c10772 (patch) | |
tree | fd4dd04a8543da493e047e1c09a98b67e05d1173 /engines | |
parent | e1cc5c309a81db91e6c2aa39a02923eb49f222f1 (diff) | |
download | scummvm-rg350-2a485abd6d03f94813f6e88904af07f709c10772.tar.gz scummvm-rg350-2a485abd6d03f94813f6e88904af07f709c10772.tar.bz2 scummvm-rg350-2a485abd6d03f94813f6e88904af07f709c10772.zip |
Make static buffer larger.
This fixes crashes with AGI target names like goldrush-amiga.
svn-id: r40437
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index 2e30623797..cad8bdf29c 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -508,7 +508,7 @@ int AgiEngine::loadGame(const char *fileName, bool checkId) { #define NUM_VISIBLE_SLOTS 12 const char *AgiEngine::getSavegameFilename(int num) { - static char saveLoadSlot[12]; + static char saveLoadSlot[100]; sprintf(saveLoadSlot, "%s.%.3d", _targetName.c_str(), num); return saveLoadSlot; } |