fix swapped memset arguments in audio.c
PATCH 1/1 fix swapped memset arguments in audio.c
It appears that the arguments to memset are ordered incorrectly in the pcm_hw_clear function of audio.c. Patch against xen-unstable is attached.
tools/ioemu/audio/audio.c renamed from tools/ioemu/audio/audio.c~ +2 -2
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel