Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
authorroland <roland>
Sun, 18 Feb 1996 18:12:11 +0000 (18:12 +0000)
committerroland <roland>
Sun, 18 Feb 1996 18:12:11 +0000 (18:12 +0000)
* stdio-common/vfscanf.c (endif): fixed scanning of "0" with %d
  format.

stdio-common/vfscanf.c

index 48aa059..60e9e46 100644 (file)
@@ -542,7 +542,9 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
                    }
                }
              else if (base == 0)
-               base = 8;
+                 base = 8;
+             else
+                 ADDW('0');    /* zero is part of the number */
            }
 
          if (base == 0)