[Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.339.2.5,1.339.2.6
Gregory Montoir
cyx at users.sourceforge.net
Sat Oct 22 03:55:13 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14757
Modified Files:
Tag: branch-0-8-0
resource.cpp
Log Message:
backported room names fix for HE games
Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/resource.cpp,v
retrieving revision 1.339.2.5
retrieving revision 1.339.2.6
diff -u -d -r1.339.2.5 -r1.339.2.6
--- resource.cpp 21 Oct 2005 15:20:24 -0000 1.339.2.5
+++ resource.cpp 22 Oct 2005 10:53:16 -0000 1.339.2.6
@@ -476,9 +476,9 @@
// Names of rooms. Maybe we should put them into a table, for use by the debugger?
if (_heversion >= 80) {
for (int room; (room = _fileHandle->readUint16LE()); ) {
- char buf[20];
+ char buf[100];
i = 0;
- for (byte s; (s = _fileHandle->readByte()); ) {
+ for (byte s; (s = _fileHandle->readByte()) && i < ARRAYSIZE(buf) - 1; ) {
buf[i++] = s;
}
buf[i] = 0;
More information about the Scummvm-git-logs
mailing list