Re: memchr() fails to handle corner case where size=1

Content by khorben on 26/02/2011 16:55:35
You're absolutely right...
Even worse, in my code I think the value of n is undefined once it exits the loop: decrementing an unsigned value of 0 does not sound good.