News for hackers. Stuff that matters.
Re:Curl doesn’t spew binary anymore by skykooler on Saturday June 17, 2017 @12:12PM (#14576450)
> memchr() returns the first occurrence of the byte 0 (your second argument), or NULL.

...What if the first byte is 0? That would cause the if condition to fail, and the output would be treated as plain text.

Re:Curl doesn’t spew binary anymore by burntsushi on Saturday June 17, 2017 @12:28PM (#14576522)
memchr returns a pointer, not an offset.
Re:Curl doesn’t spew binary anymore by skykooler on Sunday June 18, 2017 @12:29AM (#14578974)
Ah, that explains it.