From: "Charles Coffing" Subject: [PATCH] fix swapped memset arguments in audio.c Date: Fri, 20 Jan 2006 10:49:06 -0700 Message-ID: <43D0C051.D169.003C.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part5A78C582.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part5A78C582.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. --=__Part5A78C582.0__= Content-Type: text/plain; name="audio-memset.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="audio-memset.diff" --- a/tools/ioemu/audio/audio.c~ 2006-01-20 10:44:34.000000000 -0700 +++ b/tools/ioemu/audio/audio.c 2006-01-20 10:44:51.000000000 -0700 @@ -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: --=__Part5A78C582.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part5A78C582.0__=--