Bug#57729: libc6: fgets() doesn't work properly on socket
I've read the info page on fgets(), and found this:
*Warning:* If the input data has a null character, you can't tell.
So don't use `fgets' unless you know the data cannot contain a
null. Don't use it to read files edited by the user because, if
the user inserts a null character, you should either handle it
properly or print a clear error message. We recommend using
`getline' instead of `fgets'.
I suspect this is causing your problem (null chars). If this satisfies
your problem, but you are still disatisfied with the man page, please
reassign this bug to the manpages-dev package (which is not maintained as
part of glibc).
Thanks,
Ben
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: