From 7fa9b0319d4502c54335454c4d0e5589ebcf7e6f Mon Sep 17 00:00:00 2001 From: kstailey Date: Sat, 15 Aug 1998 22:47:54 +0000 Subject: fix kbd generated NULs from CTRL-@ and CTRL-SP --- sys/dev/wscons/wscons.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/dev/wscons') diff --git a/sys/dev/wscons/wscons.c b/sys/dev/wscons/wscons.c index a01d15ff0ff..ea1bdffd003 100644 --- a/sys/dev/wscons/wscons.c +++ b/sys/dev/wscons/wscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wscons.c,v 1.6 1997/11/06 12:26:58 niklas Exp $ */ +/* $OpenBSD: wscons.c,v 1.7 1998/08/15 22:47:53 kstailey Exp $ */ /* $NetBSD: wscons.c,v 1.10 1996/12/05 01:39:47 cgd Exp $ */ /* @@ -233,8 +233,11 @@ wscons_input(cp) tp = sc->sc_tty; #endif - while (*cp) - (*linesw[tp->t_line].l_rint)(*cp++, tp); + if (*cp == '\0') /* deal with kbd generated NULs */ + (*linesw[tp->t_line].l_rint)(*cp, tp); + else + while (*cp) + (*linesw[tp->t_line].l_rint)(*cp++, tp); } -- cgit v1.2.3