From 2940feb06f1a92841121b223063b123c3fae11a0 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 26 Jul 2001 02:52:53 +0000 Subject: 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. :-( --- libc/stdio/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/stdio') 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; } -- cgit v1.2.3