|
From: | Christophe Fillot |
Subject: | Re: [Qemu-devel] Re: esd audio output patch and debuging. |
Date: | Mon, 04 Sep 2006 14:01:08 +0200 |
User-agent: | Thunderbird 1.5.0.5 (Windows/20060719) |
Peter Oberndorfer a e'crit :
if (info->sign) { - memset (buf, 0x00, len << info->shift); + memset (buf, len << info->shift, 0x00); } else { if (info->bits == 8) { - memset (buf, 0x80, len << info->shift); + memset (buf, len << info->shift, 0x80); } This part looks wrong (swapped parameters)
Hello, No, this is correct: #include <string.h> void *memset(void *s, int c, size_t n); Best regards.
[Prev in Thread] | Current Thread | [Next in Thread] |