Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-01-12 01:06:09 +0300
committerJeff Johnston <jjohnstn@redhat.com>2002-01-12 01:06:09 +0300
commit798c015d114223b53caf5affb5820dbecb69dc4d (patch)
treeaff08d6be298e8ff452f90eaf96ff4cb3faec15f /newlib/libc/stdio
parent175f01bc175fc0bc700426a23709596a629cf9c8 (diff)
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.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/vfscanf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c
index 8f49141f1..f6c3c930b 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++;
}