diff options
author | Max Horn | 2003-06-21 15:32:25 +0000 |
---|---|---|
committer | Max Horn | 2003-06-21 15:32:25 +0000 |
commit | ece6f28fd7a0678af09984239e39ced2fa265875 (patch) | |
tree | 4f58369045944dd64414c52e1bb84383e9048808 /simon | |
parent | 445a805238fc667177d6fc0cc8bc9694cf4aa2d8 (diff) | |
download | scummvm-rg350-ece6f28fd7a0678af09984239e39ced2fa265875.tar.gz scummvm-rg350-ece6f28fd7a0678af09984239e39ced2fa265875.tar.bz2 scummvm-rg350-ece6f28fd7a0678af09984239e39ced2fa265875.zip |
fix (?) for an invalid read report in valgrin
svn-id: r8578
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); |