summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/puts.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/puts.c')
-rw-r--r--lib/libc/stdio/puts.c3
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');