[Scummvm-cvs-logs] CVS: scummvm/scumm script_v72he.cpp,2.308,2.309
Gregory Montoir
cyx at users.sourceforge.net
Tue Oct 18 12:16:57 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3195/scumm
Modified Files:
script_v72he.cpp
Log Message:
Fixed invalid memory reads, this helps thinker1 demo
Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.308
retrieving revision 2.309
diff -u -d -r2.308 -r2.309
--- script_v72he.cpp 18 Oct 2005 01:30:21 -0000 2.308
+++ script_v72he.cpp 18 Oct 2005 19:16:02 -0000 2.309
@@ -1765,9 +1765,11 @@
// There are Macintosh specific versions of HE7.2 games.
if (_heversion >= 80 && _substResFileNameIndex > 0) {
char buf1[128];
-
+ buf1[0] = '\0';
generateSubstResFileName((char *)filename, buf1, sizeof(buf1));
- strcpy((char *)filename, buf1);
+ if (buf1[0]) {
+ strcpy((char *)filename, buf1);
+ }
}
int r = convertFilePath(filename);
More information about the Scummvm-git-logs
mailing list