OSDN Git Service

2002-01-11 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Fri, 11 Jan 2002 22:06:09 +0000 (22:06 +0000)
committerjjohnstn <jjohnstn>
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 4813407..c4ad7cc 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 8f49141..f6c3c93 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++;
            }