qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: esd audio output patch and debuging.


From: Peter Oberndorfer
Subject: Re: [Qemu-devel] Re: esd audio output patch and debuging.
Date: Mon, 4 Sep 2006 16:04:55 +0200
User-agent: KMail/1.8.3

On Monday 04 September 2006 14:01, Christophe Fillot wrote:
> Peter Oberndorfer a e'crit :
> >
> >
> >      if (info->sign) {
> > -        memset (buf, 0x00, len << info->shift);
> > +        memset (buf, len << info->shift, 0x00);
> >      }
> >      else {
> >          if (info->bits == 8) {
> > -            memset (buf, 0x80, len << info->shift);
> > +            memset (buf, len << info->shift, 0x80);
> >          }
> >
> >
> > This part looks wrong (swapped parameters)
> >
> 
> Hello,
> 
> No, this is correct:
> 
> #include <string.h>
> 
> void *memset(void *s, int c, size_t n);
"The memset() function fills the first n bytes of the memory area pointed to by 
s with the constant byte c."

But isn't a size of 0x00 bytes a bit pointless?
Or is this a reverse patch? (doesn't look like one)
> 
> Best regards.

Greetings Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]