diff options
author | Travis Howell | 2008-07-27 01:54:40 +0000 |
---|---|---|
committer | Travis Howell | 2008-07-27 01:54:40 +0000 |
commit | 4f445e3deb2e468393a26166d46ed34e758ef316 (patch) | |
tree | f4fa61ffbbe232a3b935930795f51d7a2b1c02c6 | |
parent | 8245aa42b5892b92aafe0f0c9c891cabfd7f91ef (diff) | |
download | scummvm-rg350-4f445e3deb2e468393a26166d46ed34e758ef316.tar.gz scummvm-rg350-4f445e3deb2e468393a26166d46ed34e758ef316.tar.bz2 scummvm-rg350-4f445e3deb2e468393a26166d46ed34e758ef316.zip |
Fix buffer overflow in error message.
svn-id: r33321
-rw-r--r-- | engines/agos/saveload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index 34e5f2cfeb..284c7979c0 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -75,7 +75,7 @@ int AGOSEngine::countSaveGames() { } char *AGOSEngine::genSaveName(int slot) { - static char buf[15]; + static char buf[20]; if (getGameId() == GID_DIMP) { sprintf(buf, "dimp.sav"); @@ -111,7 +111,7 @@ void AGOSEngine::quickLoadOrSave() { } bool success; - char buf[50]; + char buf[60]; char *filename = genSaveName(_saveLoadSlot); if (_saveLoadType == 2) { |