mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +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:
@ -32,5 +32,5 @@
|
||||
int
|
||||
getchar_unlocked (void)
|
||||
{
|
||||
return _IO_getc_unlocked (_IO_stdin);
|
||||
return _IO_getc_unlocked (stdin);
|
||||
}
|
||||
|
Reference in New Issue
Block a user