aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-06-21 22:04:20 +0000
committerMax Horn2003-06-21 22:04:20 +0000
commit7281ac690732a93e9407f56e61976ea4b7c54fad (patch)
tree36edff1ae2fc9a37eeff80e360890916ccaad32d
parent7c332d7fdb8ae0356ab21368c4903aea4b9b8640 (diff)
downloadscummvm-rg350-7281ac690732a93e9407f56e61976ea4b7c54fad.tar.gz
scummvm-rg350-7281ac690732a93e9407f56e61976ea4b7c54fad.tar.bz2
scummvm-rg350-7281ac690732a93e9407f56e61976ea4b7c54fad.zip
undo this change again - proper fix would be to correct the MP3 playback code
svn-id: r8593
-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);