mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* stdio-common/vfscanf.c: Don't return -1 in case of an invalid format, jsut stop.
This commit is contained in:
@ -85,11 +85,6 @@
|
||||
__libc_cleanup_end (0); \
|
||||
return EOF; \
|
||||
} while (0)
|
||||
# define fmt_error() do { \
|
||||
_IO_funlockfile (s); \
|
||||
__libc_cleanup_end (0); \
|
||||
return EOF; \
|
||||
} while (0)
|
||||
# define ARGCHECK(s, format) \
|
||||
do \
|
||||
{ \
|
||||
@ -134,10 +129,6 @@
|
||||
__set_errno (ENOMEM); \
|
||||
return EOF; \
|
||||
} while (0)
|
||||
# define fmt_error() do { \
|
||||
funlockfile (s); \
|
||||
return EOF; \
|
||||
} while (0)
|
||||
# define ARGCHECK(s, format) \
|
||||
do \
|
||||
{ \
|
||||
@ -1259,7 +1250,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
|
||||
|
||||
default:
|
||||
/* If this is an unknown format character punt. */
|
||||
fmt_error ();
|
||||
conv_error ();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user