fix scanf handling of "0" (followed by immediate EOF) with "%x"
authorRich Felker <dalias@aerifal.cx>
Tue, 13 Mar 2012 16:37:51 +0000 (12:37 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 13 Mar 2012 16:37:51 +0000 (12:37 -0400)
commit291f839a440423a15487ba95822247adb2b098f6
tree6cc1237ffcb458a394e4785290fdfc55a35e5fd9
parentbf9d9dcaa631db9918452d05c188f01c8e5f537f
fix scanf handling of "0" (followed by immediate EOF) with "%x"

other cases with %x were probably broken too.

I would actually like to go ahead and replace this code in scanf with
calls to the new __intparse framework, but for now this calls for a
quick and unobtrusive fix without the risk of breaking other things.
src/stdio/__scanf.c