diff options
author | Gregory Montoir | 2005-10-22 10:48:14 +0000 |
---|---|---|
committer | Gregory Montoir | 2005-10-22 10:48:14 +0000 |
commit | eeee881514cec76ed3a8f9e47ec2e89c0d408797 (patch) | |
tree | 42f0c04108c1b0f245f702a21b5a12a186dabf90 /scumm | |
parent | e611a3ccb0f57d6da5049face2ee63fd5e8973a7 (diff) | |
download | scummvm-rg350-eeee881514cec76ed3a8f9e47ec2e89c0d408797.tar.gz scummvm-rg350-eeee881514cec76ed3a8f9e47ec2e89c0d408797.tar.bz2 scummvm-rg350-eeee881514cec76ed3a8f9e47ec2e89c0d408797.zip |
As Kirben suggested, increasing room name buffer
svn-id: r19237
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/resource.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index 01dce3cd75..532ea21a87 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -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? if (_heversion >= 80) { for (int room; (room = _fileHandle->readUint16LE()); ) { - char buf[30]; + char buf[100]; i = 0; - for (byte s; (s = _fileHandle->readByte()); ) { - assert(i < ARRAYSIZE(buf)); + for (byte s; (s = _fileHandle->readByte()) && i < ARRAYSIZE(buf) - 1; ) { buf[i++] = s; } - assert(i < ARRAYSIZE(buf)); buf[i] = 0; debug(5, "Room %d: '%s'", room, buf); } |