aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-11 21:55:59 +0200
committerEugene Sandulenko2017-08-11 21:55:59 +0200
commitedeb6a636c53c9c801adcd6fcbd660677a28ef95 (patch)
tree695167d8a6158bac5ca6efc9cb73b9a26ab1c538
parent859b54222f8532deefdecb3e655f3312b66d6b8d (diff)
downloadscummvm-rg350-edeb6a636c53c9c801adcd6fcbd660677a28ef95.tar.gz
scummvm-rg350-edeb6a636c53c9c801adcd6fcbd660677a28ef95.tar.bz2
scummvm-rg350-edeb6a636c53c9c801adcd6fcbd660677a28ef95.zip
AUDIO: Fix insufficient memset length in FM-TOWNS synthesizer
-rw-r--r--audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp
index d536429f4e..03c96792f6 100644
--- a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp
+++ b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp
@@ -935,7 +935,7 @@ void TownsPC98_FmSynth::reset() {
for (int i = 0; i < _numChan; i++) {
for (int ii = 0; ii < 4; ii++)
_chanInternal[i].opr[ii]->reset();
- memset(_chanInternal[i].feedbuf, 0, 3);
+ memset(_chanInternal[i].feedbuf, 0, 3 * sizeof(int32));
_chanInternal[i].algorithm = 0;
_chanInternal[i].frqTemp = 0;
_chanInternal[i].enableLeft = _chanInternal[i].enableRight = true;