From 522b069433b7198f53e1874697d43268fae34840 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 27 Mar 2007 00:49:20 +0000 Subject: [PATCH] wow, wasn't thinking well with that one. fixes the seg with the default renderer --- libs/audio/renderer/snd_mix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/audio/renderer/snd_mix.c b/libs/audio/renderer/snd_mix.c index 7ab64776f..19bda1669 100644 --- a/libs/audio/renderer/snd_mix.c +++ b/libs/audio/renderer/snd_mix.c @@ -112,8 +112,7 @@ SND_PaintChannels (unsigned endtime) sfxbuffer_t *sc; // clear the paint buffer - memset (snd_paintbuffer, 0, (endtime - snd_paintedtime) * - sizeof (portable_samplepair_t)); + memset (snd_paintbuffer, 0, sizeof (snd_paintbuffer)); while (snd_paintedtime < endtime) { // if snd_paintbuffer is smaller than DMA buffer