diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-01-11 22:06:09 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-01-11 22:06:09 +0000 |
commit | 798c015d114223b53caf5affb5820dbecb69dc4d (patch) | |
tree | aff08d6be298e8ff452f90eaf96ff4cb3faec15f | |
parent | 175f01bc175fc0bc700426a23709596a629cf9c8 (diff) | |
download | newlib-798c015d114223b53caf5affb5820dbecb69dc4d.zip newlib-798c015d114223b53caf5affb5820dbecb69dc4d.tar.gz newlib-798c015d114223b53caf5affb5820dbecb69dc4d.tar.bz2 |
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.
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/stdio/vfscanf.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4813407..c4ad7cc 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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. diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index 8f49141..f6c3c93 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -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++; } |