summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-07-26 02:52:53 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-07-26 02:52:53 +0000
commit2940feb06f1a92841121b223063b123c3fae11a0 (patch)
tree49d5ed559a6314b3d72cbcc7914af5a813af3266
parent75f21a11e173f38e7ead2eff119314482b803a65 (diff)
Yes... the previous "fix" was broken too... the result of careless cutting
and pasting while pressed for time. I haven't checked this one either. :-(
-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;
}