[Scummvm-git-logs] scummvm master -> edeb6a636c53c9c801adcd6fcbd660677a28ef95

sev- sev at scummvm.org
Fri Aug 11 21:56:39 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
edeb6a636c AUDIO: Fix insufficient memset length in FM-TOWNS synthesizer


Commit: edeb6a636c53c9c801adcd6fcbd660677a28ef95
    https://github.com/scummvm/scummvm/commit/edeb6a636c53c9c801adcd6fcbd660677a28ef95
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-08-11T21:55:59+02:00

Commit Message:
AUDIO: Fix insufficient memset length in FM-TOWNS synthesizer

Changed paths:
    audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp


diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp
index d536429..03c9679 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;





More information about the Scummvm-git-logs mailing list