summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/stdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/stdio.c b/libc/stdio/stdio.c
index 34ee50347..09a1a5571 100644
--- a/libc/stdio/stdio.c
+++ b/libc/stdio/stdio.c
@@ -421,7 +421,7 @@ off_t _uClibc_fread(unsigned char *buf, off_t bytes, FILE *fp)
fp->bufread += _uClibc_fread(fp->bufstart,
fp->bufend - fp->bufstart, fp);
if (fp->bufread - fp->bufstart >= bytes) { /* If we read all */
- fp->mode |= ~__MODE_EOF; /* that was requested, make sure */
+ fp->mode &= ~__MODE_EOF; /* that was requested, make sure */
} /* EOF flag is clear. */
goto FROM_BUF;
}