diff options
Diffstat (limited to 'userland/libc/stdio/fgetc.c')
-rw-r--r-- | userland/libc/stdio/fgetc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/userland/libc/stdio/fgetc.c b/userland/libc/stdio/fgetc.c index c69211f..afa299f 100644 --- a/userland/libc/stdio/fgetc.c +++ b/userland/libc/stdio/fgetc.c @@ -4,6 +4,7 @@ int fgetc(FILE *stream) { if (stream->has_buffered_char) { stream->has_buffered_char = 0; + fseek(stream, 1, SEEK_CUR); return stream->buffered_char; } char c; |