about summary refs log tree commit diff
path: root/src/stdio/getchar_unlocked.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/getchar_unlocked.c')
-rw-r--r--src/stdio/getchar_unlocked.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/getchar_unlocked.c b/src/stdio/getchar_unlocked.c
index 299cb958..355ac318 100644
--- a/src/stdio/getchar_unlocked.c
+++ b/src/stdio/getchar_unlocked.c
@@ -2,5 +2,5 @@
 
 int getchar_unlocked(void)
 {
-	return stdin->rpos < stdin->rstop ? *stdin->rpos++ : __uflow(stdin);
+	return getc_unlocked(stdin);
 }