diff options
Diffstat (limited to 'simon')
-rw-r--r-- | simon/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp index 80a7f89fbc..d38cd3903f 100644 --- a/simon/sound.cpp +++ b/simon/sound.cpp @@ -214,7 +214,7 @@ int MP3Sound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) uint32 size = _offsets[sound+1] - _offsets[sound]; - byte *buffer = (byte *)malloc(size); + byte *buffer = (byte *)malloc(size + 1); _file->read(buffer, size); return _mixer->playMP3(handle, buffer, size, flags); |