[Scummvm-cvs-logs] SF.net SVN: scummvm: [29580] scummvm/trunk/engines/agos/saveload.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue Nov 20 19:46:01 CET 2007
Revision: 29580
http://scummvm.svn.sourceforge.net/scummvm/?rev=29580&view=rev
Author: eriktorbjorn
Date: 2007-11-20 10:46:01 -0800 (Tue, 20 Nov 2007)
Log Message:
-----------
Fixed unterminated string in countSaveGames(), which may be the cause of the
problem with Feeble Files savegames not being shown that was described on the
forum recently.
Modified Paths:
--------------
scummvm/trunk/engines/agos/saveload.cpp
Modified: scummvm/trunk/engines/agos/saveload.cpp
===================================================================
--- scummvm/trunk/engines/agos/saveload.cpp 2007-11-20 16:44:16 UTC (rev 29579)
+++ scummvm/trunk/engines/agos/saveload.cpp 2007-11-20 18:46:01 UTC (rev 29580)
@@ -40,7 +40,7 @@
Common::InSaveFile *f;
Common::StringList filenames;
uint i = 1;
- char slot[3];
+ char slot[4];
int slotNum;
bool marks[256];
@@ -55,6 +55,7 @@
slot[0] = file->c_str()[file->size()-3];
slot[1] = file->c_str()[file->size()-2];
slot[2] = file->c_str()[file->size()-1];
+ slot[3] = '\0';
slotNum = atoi(slot);
if (slotNum >= 0 && slotNum < 256)
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