summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/wbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/wbuf.c')
-rw-r--r--lib/libc/stdio/wbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/wbuf.c b/lib/libc/stdio/wbuf.c
index e099b3d89c6..2f702668a92 100644
--- a/lib/libc/stdio/wbuf.c
+++ b/lib/libc/stdio/wbuf.c
@@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: wbuf.c,v 1.7 2004/09/28 18:12:44 otto Exp $";
+static char rcsid[] = "$OpenBSD: wbuf.c,v 1.8 2005/06/17 20:40:32 espie Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -48,6 +48,7 @@ __swbuf(int c, FILE *fp)
{
int n;
+ _SET_ORIENTATION(fp, -1);
/*
* In case we cannot write, or longjmp takes us out early,
* make sure _w is 0 (if fully- or un-buffered) or -_bf._size