From edeb6a636c53c9c801adcd6fcbd660677a28ef95 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 11 Aug 2017 21:55:59 +0200 Subject: AUDIO: Fix insufficient memset length in FM-TOWNS synthesizer --- audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/softsynth/fmtowns_pc98') 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; -- cgit v1.2.3