Fix buffer overflow in error message.
svn-id: r33321
This commit is contained in:
parent
8245aa42b5
commit
4f445e3deb
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue