[Scummvm-cvs-logs] SF.net SVN: scummvm: [29748] scummvm/trunk/engines/scumm/saveload.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Fri Dec 7 18:59:25 CET 2007
Revision: 29748
http://scummvm.svn.sourceforge.net/scummvm/?rev=29748&view=rev
Author: wjpalenstijn
Date: 2007-12-07 09:59:24 -0800 (Fri, 07 Dec 2007)
Log Message:
-----------
fix unterminated string (causing intermittent savegame listing problems in scumm)
Modified Paths:
--------------
scummvm/trunk/engines/scumm/saveload.cpp
Modified: scummvm/trunk/engines/scumm/saveload.cpp
===================================================================
--- scummvm/trunk/engines/scumm/saveload.cpp 2007-12-07 12:41:53 UTC (rev 29747)
+++ scummvm/trunk/engines/scumm/saveload.cpp 2007-12-07 17:59:24 UTC (rev 29748)
@@ -400,7 +400,7 @@
assert(marks);
char prefix[256];
- char slot[2];
+ char slot[3];
int slotNum;
Common::StringList filenames;
@@ -414,6 +414,7 @@
//Obtain the last 2 digits of the filename, since they correspond to the save slot
slot[0] = file->c_str()[file->size()-2];
slot[1] = file->c_str()[file->size()-1];
+ slot[2] = 0;
slotNum = atoi(slot);
if (slotNum >= 0 && slotNum < num)
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