[Scummvm-cvs-logs] SF.net SVN: scummvm:[35282] scummvm/trunk/engines/touche/detection.cpp

cyx at users.sourceforge.net cyx at users.sourceforge.net
Sun Dec 7 20:15:19 CET 2008


Revision: 35282
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35282&view=rev
Author:   cyx
Date:     2008-12-07 19:15:19 +0000 (Sun, 07 Dec 2008)

Log Message:
-----------
fixed readGameStateDescription() len parameter

Modified Paths:
--------------
    scummvm/trunk/engines/touche/detection.cpp

Modified: scummvm/trunk/engines/touche/detection.cpp
===================================================================
--- scummvm/trunk/engines/touche/detection.cpp	2008-12-07 18:49:35 UTC (rev 35281)
+++ scummvm/trunk/engines/touche/detection.cpp	2008-12-07 19:15:19 UTC (rev 35282)
@@ -182,8 +182,8 @@
 			Common::String file = Touche::generateGameStateFileName(target, slot);
 			Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(file.c_str());
 			if (in) {
-				char description[64] = { 0 };
-				Touche::readGameStateDescription(in, description, sizeof(description));
+				char description[64];
+				Touche::readGameStateDescription(in, description, sizeof(description) - 1);
 				if (description[0]) {
 					saveList.push_back(SaveStateDescriptor(slot, description));
 				}


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