diff options
-rw-r--r-- | src/stdio/getc_unlocked.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/getc_unlocked.c b/src/stdio/getc_unlocked.c index 13c9f867..dccbc2e4 100644 --- a/src/stdio/getc_unlocked.c +++ b/src/stdio/getc_unlocked.c @@ -25,6 +25,7 @@ int getc_unlocked(FILE * stream) if (read(stream->fd, &c, sizeof(c)) != 1) { stream->err = 1; + stream->eof = 1; return EOF; } |