* stdio-common/vfscanf.c: Disallow l flag after ll or L.

This commit is contained in:
Roland McGrath 1996-01-24 08:25:13 +00:00
parent a66067befe
commit 914d9d7bdf
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdio-common/vfscanf.c: Disallow l flag after ll or L.
* stdio-common/Makefile (tests): Add scanf[1-9].
* stdio-common/scanf[1-9].c: New files. Bug tests from hjl.

View File

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