summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2009-10-28 07:13:00 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2009-10-28 07:13:00 +0000
commit7aecdfad7070aa77d2008ddfb94c4a63a6278935 (patch)
tree2d2395e1f6d04650f18922ef7844fceee5f05cb6 /bin
parentfb55d0c243743bff0a1bda84a1c138b1f71211bd (diff)
The min and time settings in stty -g output are in hex, not decimal, so
parse them as such. ok deraadt@
Diffstat (limited to 'bin')
-rw-r--r--bin/stty/gfmt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c
index 995e1f60283..67f4672f5d5 100644
--- a/bin/stty/gfmt.c
+++ b/bin/stty/gfmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gfmt.c,v 1.7 2009/10/27 23:59:22 deraadt Exp $ */
+/* $OpenBSD: gfmt.c,v 1.8 2009/10/28 07:12:59 guenther Exp $ */
/* $NetBSD: gfmt.c,v 1.10 1996/05/07 18:20:08 jtc Exp $ */
/*-
@@ -107,8 +107,6 @@ gread(struct termios *tp, char *s)
}
for (cp = cchars1; cp->name != NULL; ++cp)
if (CHK(cp->name)) {
- if (cp->sub == VMIN || cp->sub == VTIME)
- (void)sscanf(ep, "%ld", &tmp);
tp->c_cc[cp->sub] = tmp;
break;
}