debuggers.hg
changeset 10967:4dd640c6ce57
[qemu] Fix memset arguments in qemu audio code.
The arguments for the calls to memset are reversed in audio.c.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
The arguments for the calls to memset are reversed in audio.c.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
author | chris@kneesaa.uk.xensource.com |
---|---|
date | Fri Aug 04 10:19:53 2006 +0100 (2006-08-04) |
parents | 92ef1215a6f1 |
children | cf00bca7c6e1 |
files | tools/ioemu/audio/audio.c |
line diff
1.1 --- a/tools/ioemu/audio/audio.c Fri Aug 04 09:31:06 2006 +0100 1.2 +++ b/tools/ioemu/audio/audio.c Fri Aug 04 10:19:53 2006 +0100 1.3 @@ -597,11 +597,11 @@ void audio_pcm_info_clear_buf (struct au 1.4 } 1.5 1.6 if (info->sign) { 1.7 - memset (buf, len << info->shift, 0x00); 1.8 + memset (buf, 0x00, len << info->shift); 1.9 } 1.10 else { 1.11 if (info->bits == 8) { 1.12 - memset (buf, len << info->shift, 0x80); 1.13 + memset (buf, 0x80, len << info->shift); 1.14 } 1.15 else { 1.16 int i;