mirror of git://sourceware.org/git/glibc.git
* 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>
|
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/Makefile (tests): Add scanf[1-9].
|
||||||
* stdio-common/scanf[1-9].c: New files. Bug tests from hjl.
|
* 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;
|
flags |= SHORT;
|
||||||
break;
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
if (flags & SHORT)
|
if (flags & (SHORT|LONGDBL))
|
||||||
conv_error ();
|
conv_error ();
|
||||||
else if (flags & LONG)
|
else if (flags & LONG)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue