Disallow l flag after ll or L.
authorroland <roland>
Wed, 24 Jan 1996 08:24:31 +0000 (08:24 +0000)
committerroland <roland>
Wed, 24 Jan 1996 08:24:31 +0000 (08:24 +0000)
stdio-common/vfscanf.c

index 8a799ac..46f0658 100644 (file)
@@ -313,7 +313,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
            flags |= SHORT;
            break;
          case 'l':
            flags |= SHORT;
            break;
          case 'l':
-           if (flags & SHORT)
+           if (flags & (SHORT|LONGDBL))
              conv_error ();
            else if (flags & LONG)
              {
              conv_error ();
            else if (flags & LONG)
              {