As Kirben suggested, increasing room name buffer
svn-id: r19237
This commit is contained in:
parent
e611a3ccb0
commit
eeee881514
1 changed files with 2 additions and 4 deletions
|
@ -484,13 +484,11 @@ void ScummEngine::readIndexBlock(uint32 blocktype, uint32 itemsize) {
|
||||||
// Names of rooms. Maybe we should put them into a table, for use by the debugger?
|
// Names of rooms. Maybe we should put them into a table, for use by the debugger?
|
||||||
if (_heversion >= 80) {
|
if (_heversion >= 80) {
|
||||||
for (int room; (room = _fileHandle->readUint16LE()); ) {
|
for (int room; (room = _fileHandle->readUint16LE()); ) {
|
||||||
char buf[30];
|
char buf[100];
|
||||||
i = 0;
|
i = 0;
|
||||||
for (byte s; (s = _fileHandle->readByte()); ) {
|
for (byte s; (s = _fileHandle->readByte()) && i < ARRAYSIZE(buf) - 1; ) {
|
||||||
assert(i < ARRAYSIZE(buf));
|
|
||||||
buf[i++] = s;
|
buf[i++] = s;
|
||||||
}
|
}
|
||||||
assert(i < ARRAYSIZE(buf));
|
|
||||||
buf[i] = 0;
|
buf[i] = 0;
|
||||||
debug(5, "Room %d: '%s'", room, buf);
|
debug(5, "Room %d: '%s'", room, buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue