mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
* stdio-common/vfscanf.c: Disallow l flag after ll or L.
This commit is contained in:
parent
a66067befe
commit
914d9d7bdf
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user