From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 20 Jan 2006 19:31:09 +0000 (+0100) Subject: The arguments to memset are ordered incorrectly in the X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16541^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=55fe40b0d137fbcc78dc95353daf1dca76c7a5ab;p=xen.git The arguments to memset are ordered incorrectly in the pcm_hw_clear function of audio.c. Signed-off-by: Charles Coffing --- diff --git a/tools/ioemu/audio/audio.c b/tools/ioemu/audio/audio.c index 661771e82e..c3782d58a2 100644 --- a/tools/ioemu/audio/audio.c +++ b/tools/ioemu/audio/audio.c @@ -257,11 +257,11 @@ void pcm_hw_clear (HWVoice *hw, void *buf, int len) switch (hw->fmt) { case AUD_FMT_S16: case AUD_FMT_S8: - memset (buf, len << hw->shift, 0x00); + memset (buf, 0x00, len << hw->shift); break; case AUD_FMT_U8: - memset (buf, len << hw->shift, 0x80); + memset (buf, 0x80, len << hw->shift); break; case AUD_FMT_U16: