aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2013-04-15 18:30:12 +0200
committerSven Hesse2013-04-15 18:30:12 +0200
commit3540b943cff7a1d98af66e9425de932532edb63e (patch)
treefd3accbba5132bd0f1c33a5bddeb22f809bdd034 /engines/gob
parenteb55db436ddb0746179d72b3cae950dfbeb1d8b6 (diff)
downloadscummvm-rg350-3540b943cff7a1d98af66e9425de932532edb63e.tar.gz
scummvm-rg350-3540b943cff7a1d98af66e9425de932532edb63e.tar.bz2
scummvm-rg350-3540b943cff7a1d98af66e9425de932532edb63e.zip
GOB: Fix a potential array overrun
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/sound/soundblaster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/sound/soundblaster.cpp b/engines/gob/sound/soundblaster.cpp
index f267eee32d..4d6f6f0bf7 100644
--- a/engines/gob/sound/soundblaster.cpp
+++ b/engines/gob/sound/soundblaster.cpp
@@ -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();