diff options
author | 2009-11-21 09:53:44 +0000 | |
---|---|---|
committer | 2009-11-21 09:53:44 +0000 | |
commit | 4b48fced6029dbbcaf69dd998c0e08fb969fdbdb (patch) | |
tree | 3f93703a9a10102a1aba1745bf2f1ad579e46614 /lib/libc/stdio/fread.c | |
parent | The deny all and allow from any inet prefixlen 8 - 24 will block the default (diff) | |
download | wireguard-openbsd-4b48fced6029dbbcaf69dd998c0e08fb969fdbdb.tar.xz wireguard-openbsd-4b48fced6029dbbcaf69dd998c0e08fb969fdbdb.zip |
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; |