diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-04-22 02:26:12 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-04-22 02:26:12 +0000 |
commit | f2bd5ee5e04d80a88af407de62c61b0bdae16fb2 (patch) | |
tree | 917a4bd7867ca8f6bd0154124c08b57bc567796d /sys | |
parent | 921866145a56847793379c9a62e7c89695a76d54 (diff) |
Reset t_column to 0 when initializing a tty.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index df0c72e498c..906702d0285 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.94 2012/03/23 15:51:26 guenther Exp $ */ +/* $OpenBSD: tty.c,v 1.95 2012/04/22 02:26:11 matthew Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -181,6 +181,7 @@ ttyopen(dev_t device, struct tty *tp, struct proc *p) if (!ISSET(tp->t_state, TS_ISOPEN)) { SET(tp->t_state, TS_ISOPEN); bzero(&tp->t_winsize, sizeof(tp->t_winsize)); + tp->t_column = 0; #ifdef COMPAT_OLDTTY tp->t_flags = 0; #endif |