From 7aecdfad7070aa77d2008ddfb94c4a63a6278935 Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Wed, 28 Oct 2009 07:13:00 +0000 Subject: The min and time settings in stty -g output are in hex, not decimal, so parse them as such. ok deraadt@ --- bin/stty/gfmt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/stty') 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; } -- cgit v1.2.3