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/puts.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/puts.c')
-rw-r--r-- | lib/libc/stdio/puts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/puts.c b/lib/libc/stdio/puts.c index d909be9fe9f..655aed7ec9d 100644 --- a/lib/libc/stdio/puts.c +++ b/lib/libc/stdio/puts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: puts.c,v 1.10 2009/11/09 00:18:27 kurt Exp $ */ +/* $OpenBSD: puts.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. @@ -55,6 +55,7 @@ puts(const char *s) uio.uio_iov = &iov[0]; uio.uio_iovcnt = 2; FLOCKFILE(stdout); + _SET_ORIENTATION(stdout, -1); ret = __sfvwrite(stdout, &uio); FUNLOCKFILE(stdout); return (ret ? EOF : '\n'); |