diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-21 09:53:45 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-21 09:53:45 +0000 |
commit | 93496f056d8dfeaa109df6a8ec9654829d415493 (patch) | |
tree | 3c97a5b62e98111e32e4ebbd948f0609dce370f2 /lib/libc/stdio/fread.c | |
parent | 0bfab70558832850a76bd940b75a7d95af551884 (diff) |
Several stdio functions were failing to set the stream orientation
to 'narrow' as they should.
"looks correct" millert@ "makes sense" blambert@
Diffstat (limited to 'lib/libc/stdio/fread.c')
-rw-r--r-- | lib/libc/stdio/fread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/fread.c b/lib/libc/stdio/fread.c index cb6714e1d06..430865d022f 100644 --- a/lib/libc/stdio/fread.c +++ b/lib/libc/stdio/fread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fread.c,v 1.10 2009/11/09 00:18:27 kurt Exp $ */ +/* $OpenBSD: fread.c,v 1.11 2009/11/21 09:53:44 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -49,6 +49,7 @@ fread(void *buf, size_t size, size_t count, FILE *fp) if ((resid = count * size) == 0) return (0); FLOCKFILE(fp); + _SET_ORIENTATION(fp, -1); if (fp->_r < 0) fp->_r = 0; total = resid; |