From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKD8b-0005EJ-TP for qemu-devel@nongnu.org; Mon, 04 Sep 2006 08:01:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKD8Z-0005Ct-Rx for qemu-devel@nongnu.org; Mon, 04 Sep 2006 08:01:11 -0400 Received: from [195.83.155.17] (helo=floyd.utc.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKDJ5-0004oc-Gk for qemu-devel@nongnu.org; Mon, 04 Sep 2006 08:12:03 -0400 Received: from smtps.utc.fr (smtps.utc.fr [195.83.155.12]) by floyd.utc.fr (Postfix) with ESMTP id 24C563BE5C for ; Mon, 4 Sep 2006 14:01:10 +0200 (CEST) Received: from smtps.utc.fr (smtps.utc.fr [195.83.155.12]) by smtps-interne.utc.fr (Postfix) with ESMTP id F3F034060BB for ; Mon, 4 Sep 2006 14:01:09 +0200 (CEST) Received: from [193.55.117.58] (smtps.utc.fr [195.83.155.12]) by smtps.utc.fr (Postfix) with ESMTP id D3F484060BA for ; Mon, 4 Sep 2006 14:01:09 +0200 (CEST) Message-ID: <44FC1584.2070407@utc.fr> Date: Mon, 04 Sep 2006 14:01:08 +0200 From: Christophe Fillot MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: esd audio output patch and debuging. References: <200609041056.42244.kumbayo84@arcor.de> In-Reply-To: <200609041056.42244.kumbayo84@arcor.de> Content-Type: text/plain; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 void *memset(void *s, int c, size_t n); Best regards.