mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
libio: Use stdin consistently for input functions [BZ #24153]
The internal _IO_stdin_ variable is not updated when the application assigns to stdin, which is a GNU extension.
This commit is contained in:
@ -37,6 +37,6 @@
|
||||
int
|
||||
_IO_vscanf (const char *format, va_list args)
|
||||
{
|
||||
return __vfscanf_internal (_IO_stdin, format, args, 0);
|
||||
return __vfscanf_internal (stdin, format, args, 0);
|
||||
}
|
||||
ldbl_weak_alias (_IO_vscanf, vscanf)
|
||||
|
Reference in New Issue
Block a user