mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 04:01:23 +00:00
GOB: Fix a potential array overrun
This commit is contained in:
parent
eb55db436d
commit
3540b943cf
@ -98,7 +98,7 @@ void SoundBlaster::playComposition(const int16 *composition, int16 freqVal,
|
||||
do {
|
||||
i++;
|
||||
_composition[i] = composition[i];
|
||||
} while ((i < 50) && (composition[i] != -1));
|
||||
} while ((i < 49) && (composition[i] != -1));
|
||||
|
||||
_compositionPos = -1;
|
||||
nextCompositionPos();
|
||||
|
Loading…
x
Reference in New Issue
Block a user