diff options
Diffstat (limited to 'lib/libc/stdio/fread.c')
-rw-r--r-- | lib/libc/stdio/fread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdio/fread.c b/lib/libc/stdio/fread.c index a437fc7..39c1a8c 100644 --- a/lib/libc/stdio/fread.c +++ b/lib/libc/stdio/fread.c @@ -66,6 +66,7 @@ fread(buf, size, count, fp) if ((resid = count * size) == 0) return (0); FLOCKFILE(fp); + ORIENT(fp, -1); if (fp->_r < 0) fp->_r = 0; total = resid; |