diff options
Diffstat (limited to 'engines/gob/map_v1.cpp')
-rw-r--r-- | engines/gob/map_v1.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/gob/map_v1.cpp b/engines/gob/map_v1.cpp index b0da6a4593..5f2edbb613 100644 --- a/engines/gob/map_v1.cpp +++ b/engines/gob/map_v1.cpp @@ -141,13 +141,14 @@ void Map_v1::loadMapObjects(char *avjFile) { void Map_v1::loadSounds(Common::SeekableReadStream &data) { int16 count; int16 handle; - char buf[128]; + char buf[19]; char sndNames[20][14]; count = data.readUint16LE(); for (int i = 0; i < count; i++) { data.read(buf, 14); + buf[14] = 0; strcat(buf, ".SND"); strcpy(sndNames[i], buf); } |