浏览代码

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 年之前
父节点
当前提交
2940feb06f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 		}