summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-12-19 07:54:06 +0000
committertholo <tholo@openbsd.org>1996-12-19 07:54:06 +0000
commitc0f6305acb3da33917f26cd1bf76b2127589c3af (patch)
treeb8661487857ab2922c3b69ae0a020cdb68b869b1 /sys/kern/tty.c
parentmake mode/group on /usr/src/ consistent with mtree/special (diff)
downloadwireguard-openbsd-c0f6305acb3da33917f26cd1bf76b2127589c3af.tar.xz
wireguard-openbsd-c0f6305acb3da33917f26cd1bf76b2127589c3af.zip
Really set column to 0 when outputting a carriage return...
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 4b5cfbd734a..d3c8cf260ad 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.23 1996/12/17 19:19:33 tholo Exp $ */
+/* $OpenBSD: tty.c,v 1.24 1996/12/19 07:54:06 tholo Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -642,7 +642,7 @@ ttyoutput(c, tp)
tp->t_outcc++;
if (putc('\r', &tp->t_outq))
return (c);
- col = 0;
+ tp->t_column = 0;
}
else if (c == '\r' && ISSET(tp->t_oflag, OCRNL))
c = '\n';