[patch] SH: memset fix

Kaz Kojima kkojima@rr.iij4u.or.jp
Sun Jul 24 22:48:00 GMT 2005


SUGIOKA Toshinobu <sugioka@itonet.co.jp> wrote:
> On sh[34]-linux, memset function does not work if 2nd argument is negative
> and 3rd argument is greater than 12.
> for example, memset(ptr, '\xda', 20) sets 0xff instead of 0xda.

Oops.  I'm sure it qualifies as "why everything works with it"
bug.  Thanks for catching it.
Uli, could you please approve this one liner?

Regards,
	kaz



More information about the Libc-alpha mailing list