[Scummvm-cvs-logs] SF.net SVN: scummvm:[33322] scummvm/branches/branch-0-12-0/engines/agos/ saveload.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sun Jul 27 03:54:57 CEST 2008


Revision: 33322
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33322&view=rev
Author:   Kirben
Date:     2008-07-27 01:54:57 +0000 (Sun, 27 Jul 2008)

Log Message:
-----------
Fix buffer overflow in error message.

Modified Paths:
--------------
    scummvm/branches/branch-0-12-0/engines/agos/saveload.cpp

Modified: scummvm/branches/branch-0-12-0/engines/agos/saveload.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/engines/agos/saveload.cpp	2008-07-27 01:54:40 UTC (rev 33321)
+++ scummvm/branches/branch-0-12-0/engines/agos/saveload.cpp	2008-07-27 01:54:57 UTC (rev 33322)
@@ -75,7 +75,7 @@
 }
 
 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 @@
 	}
 
 	bool success;
-	char buf[50];
+	char buf[60];
 
 	char *filename = genSaveName(_saveLoadSlot);
 	if (_saveLoadType == 2) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list