Formerly ../stdio/__vfscanf.c.~13~
authorroland <roland>
Thu, 24 Sep 1992 20:12:43 +0000 (20:12 +0000)
committerroland <roland>
Thu, 24 Sep 1992 20:12:43 +0000 (20:12 +0000)
stdio/vfscanf.c

index 4b64d77..95b9fc5 100644 (file)
@@ -220,7 +220,7 @@ DEFUN(__vfscanf, (s, format, arg),
            {
              do
                *str++ = c;
-             while (inchar() != EOF && width-- > 0);
+             while (inchar() != EOF && --width > 0);
            }
          else
            while (inchar() != EOF && width > 0)