[Scummvm-cvs-logs] CVS: scummvm/scumm script_v72he.cpp,2.254,2.255 script_v7he.cpp,2.144,2.145

kirben kirben at users.sourceforge.net
Wed Apr 13 04:04:35 CEST 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14389/scumm

Modified Files:
	script_v72he.cpp script_v7he.cpp 
Log Message:

Off by one.


Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.254
retrieving revision 2.255
diff -u -d -r2.254 -r2.255
--- script_v72he.cpp	13 Apr 2005 10:34:34 -0000	2.254
+++ script_v72he.cpp	13 Apr 2005 11:03:22 -0000	2.255
@@ -2113,7 +2113,7 @@
 		entry = (ConfMan.get((char *)option).c_str());
 
 		writeVar(0, 0);
-		len = resStrLen((const byte *)entry) + 1;
+		len = resStrLen((const byte *)entry);
 		ah = defineArray(0, kStringArray, 0, 0, 0, len);
 		memcpy(ah->data, entry, len);
 

Index: script_v7he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v7he.cpp,v
retrieving revision 2.144
retrieving revision 2.145
diff -u -d -r2.144 -r2.145
--- script_v7he.cpp	13 Apr 2005 06:53:38 -0000	2.144
+++ script_v7he.cpp	13 Apr 2005 11:03:23 -0000	2.145
@@ -912,7 +912,7 @@
 		entry = (ConfMan.get((char *)option).c_str());
 
 		writeVar(0, 0);
-		len = resStrLen((const byte *)entry) + 1;
+		len = resStrLen((const byte *)entry);
 		ah = defineArray(0, kStringArray, 0, len);
 		memcpy(ah->data, entry, len);
 





More information about the Scummvm-git-logs mailing list