WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] The arguments to memset are ordered incorrectly in the

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] The arguments to memset are ordered incorrectly in the
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Jan 2006 20:52:06 +0000
Delivery-date: Fri, 20 Jan 2006 21:00:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID c4ae9456a4595f046f08aea2f2e7b3664b50ab82
# Parent  911b6d8cd6669b12d16edfd05b2ebfe1216e1d1e
The arguments to memset are ordered incorrectly in the
pcm_hw_clear function of audio.c.

Signed-off-by: Charles Coffing <ccoffing@xxxxxxxxxx>

diff -r 911b6d8cd666 -r c4ae9456a459 tools/ioemu/audio/audio.c
--- a/tools/ioemu/audio/audio.c Thu Jan 19 19:11:09 2006
+++ b/tools/ioemu/audio/audio.c Fri Jan 20 19:31:09 2006
@@ -257,11 +257,11 @@
     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:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] The arguments to memset are ordered incorrectly in the, Xen patchbot -unstable <=