]> sourceware.org Git - newlib-cygwin.git/commitdiff
2002-01-11 Jeff Johnston <jjohnstn@redhat.com>
authorJeff Johnston <jjohnstn@redhat.com>
Fri, 11 Jan 2002 22:06:09 +0000 (22:06 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Fri, 11 Jan 2002 22:06:09 +0000 (22:06 +0000)
        * libc/stdio/vfscanf.c (__svfscanf_r): Change loop that
        reads blanks from the input file to break if EOF reached
        rather than end processing.

newlib/ChangeLog
newlib/libc/stdio/vfscanf.c

index 48134073c2c91c15142aee9f6d4cad159296703b..c4ad7cccecd10153d8062668f342f38bccd75b28 100644 (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.
index 8f49141f1f5d8b658e619001b630919ea77906f8..f6c3c930b3aaff6f74f50317d59774caca586617 100644 (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++;
            }
This page took 0.038513 seconds and 5 git commands to generate.