OSDN Git Service

Fix (hopefully) scanf behavior for nul bytes in the stream when processing
authorManuel Novoa III <mjn3@codepoet.org>
Thu, 15 May 2003 21:32:31 +0000 (21:32 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Thu, 15 May 2003 21:32:31 +0000 (21:32 -0000)
commita8938c2781a66b386eb0807f9149b871d03f4c6e
tree352f79ae33aa39a97b0d054278f305c170060978
parentd4a3dca05a9841ef68bca43b829b0b66624f1ae8
Fix (hopefully) scanf behavior for nul bytes in the stream when processing
%c, %s, and %[ specifiers.  Note that scanf is undergoing rewrite so I
didn't bother optimizing this.  I did run all my regression tests though.
Set EOF correctly for fmemopen on readonly streams.  I really need to
check what glibc behavior is for the various open modes though.
libc/stdio/scanf.c
libc/stdio/stdio.c