From: Roland McGrath Date: Wed, 24 Jan 1996 08:25:13 +0000 (+0000) Subject: * stdio-common/vfscanf.c: Disallow l flag after ll or L. X-Git-Tag: cvs/libc-960124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=914d9d7bdfdafd7a7c4416cb6f58bb5e844d3482;p=thirdparty%2Fglibc.git * stdio-common/vfscanf.c: Disallow l flag after ll or L. --- diff --git a/ChangeLog b/ChangeLog index 0c5af3ed83a..b50f6cd8299 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Wed Jan 24 03:22:07 1996 Roland McGrath + * 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. diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c index 8a799acf78a..46f0658ef18 100644 --- a/stdio-common/vfscanf.c +++ b/stdio-common/vfscanf.c @@ -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) {