Browse Source

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. :-(

Manuel Novoa III 24 years ago
parent
commit
2940feb06f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/stdio/stdio.c

+ 1 - 1
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;
 		}