From: John Hodge Date: Sun, 9 Feb 2014 14:35:18 +0000 (+0800) Subject: Usermode/libc - Flush stdout on getchar X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=384befc18f81f42d2dd6e324a35904ad037b3af7;p=tpg%2Facess2.git Usermode/libc - Flush stdout on getchar --- diff --git a/Usermode/Libraries/libc.so_src/stdio.c b/Usermode/Libraries/libc.so_src/stdio.c index ac6abae1..e98ca42a 100644 --- a/Usermode/Libraries/libc.so_src/stdio.c +++ b/Usermode/Libraries/libc.so_src/stdio.c @@ -774,6 +774,7 @@ EXPORT int fgetc(FILE *fp) EXPORT int getchar(void) { + fflush(stdout); return fgetc(stdin); }