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] [xen-unstable] [qemu] Fix memset arguments in qemu audio

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [qemu] Fix memset arguments in qemu audio code.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 04 Aug 2006 11:00:16 +0000
Delivery-date: Fri, 04 Aug 2006 04:02:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 chris@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 4dd640c6ce5717b5518ca4c9286265bfa1638e5c
# Parent  92ef1215a6f1ecaa28b5f114d55c40ce05ae45ac
[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@xxxxxxxxxx>
---
 tools/ioemu/audio/audio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 92ef1215a6f1 -r 4dd640c6ce57 tools/ioemu/audio/audio.c
--- a/tools/ioemu/audio/audio.c Fri Aug 04 09:31:06 2006 +0100
+++ b/tools/ioemu/audio/audio.c Fri Aug 04 10:19:53 2006 +0100
@@ -597,11 +597,11 @@ void audio_pcm_info_clear_buf (struct au
     }
 
     if (info->sign) {
-        memset (buf, len << info->shift, 0x00);
+        memset (buf, 0x00, len << info->shift);
     }
     else {
         if (info->bits == 8) {
-            memset (buf, len << info->shift, 0x80);
+            memset (buf, 0x80, len << info->shift);
         }
         else {
             int i;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [qemu] Fix memset arguments in qemu audio code., Xen patchbot-unstable <=