[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [qemu] Fix memset arguments in qemu audio code.



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.