Fix buffer overflow in error message.

svn-id: r33321
This commit is contained in:
Travis Howell 2008-07-27 01:54:40 +00:00
parent 8245aa42b5
commit 4f445e3deb

View file

@ -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) {