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/putw.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/putw.c')
-rw-r--r-- | lib/libc/stdio/putw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/putw.c b/lib/libc/stdio/putw.c index fb6d5d8ae87..47941a476c1 100644 --- a/lib/libc/stdio/putw.c +++ b/lib/libc/stdio/putw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: putw.c,v 1.9 2009/11/09 00:18:27 kurt Exp $ */ +/* $OpenBSD: putw.c,v 1.10 2009/11/21 09:53:44 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -47,6 +47,7 @@ putw(int w, FILE *fp) uio.uio_iov = &iov; uio.uio_iovcnt = 1; FLOCKFILE(fp); + _SET_ORIENTATION(fp, -1); ret = __sfvwrite(fp, &uio); FUNLOCKFILE(fp); return (ret); |