2002-01-11 Jeff Johnston <jjohnstn@redhat.com>

* libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
        reads blanks from the input file to break if EOF reached
        rather than end processing.
This commit is contained in:
Jeff Johnston 2002-01-11 22:06:09 +00:00
parent 175f01bc17
commit 798c015d11
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-01-11 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
reads blanks from the input file to break if EOF reached
rather than end processing.
2002-01-07 Jeff Johnston <jjohnstn@redhat.com>
* MAINTAINERS: Change e-mail addresses to refer to redhat domain.

View File

@ -292,9 +292,7 @@ __svfscanf_r (rptr, fp, fmt0, ap)
{
for (;;)
{
if (BufferEmpty)
return nassigned;
if (!isspace (*fp->_p))
if (BufferEmpty || !isspace (*fp->_p))
break;
nread++, fp->_r--, fp->_p++;
}