aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2008-07-27 01:54:40 +0000
committerTravis Howell2008-07-27 01:54:40 +0000
commit4f445e3deb2e468393a26166d46ed34e758ef316 (patch)
treef4fa61ffbbe232a3b935930795f51d7a2b1c02c6
parent8245aa42b5892b92aafe0f0c9c891cabfd7f91ef (diff)
downloadscummvm-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.cpp4
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) {