aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
Diffstat (limited to 'simon')
-rw-r--r--simon/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp
index d04a919dc4..08c2aa876b 100644
--- a/simon/sound.cpp
+++ b/simon/sound.cpp
@@ -219,7 +219,7 @@ int MP3Sound::playSound(uint sound, PlayingSoundHandle *handle, byte flags)
uint32 size = _offsets[sound+1] - _offsets[sound];
- byte *buffer = (byte *)malloc(size + 1);
+ byte *buffer = (byte *)malloc(size);
_file->read(buffer, size);
return _mixer->playMP3(handle, buffer, size, flags);