OSDN Git Service

Yes... the previous "fix" was broken too... the result of careless cutting
authorManuel Novoa III <mjn3@codepoet.org>
Thu, 26 Jul 2001 02:52:53 +0000 (02:52 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Thu, 26 Jul 2001 02:52:53 +0000 (02:52 -0000)
and pasting while pressed for time.  I haven't checked this one either. :-(

libc/stdio/stdio.c

index 34ee503..09a1a55 100644 (file)
@@ -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;
                }