diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-04-01 17:51:24 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-04-01 17:51:24 +0000 |
commit | 1c9fa54b2c618dc316333d709c7bc7756824e7a6 (patch) | |
tree | 59b4234a5b1693ba9d169e5da95b24602739ce42 | |
parent | f03b76f58a988d277c9b672cfe0930124103216d (diff) |
yes, string could be up to 32; pt out by Cory Bosley (openbsd@bosleys.org) via pr#2508
-rw-r--r-- | sbin/wicontrol/wicontrol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/wicontrol/wicontrol.c b/sbin/wicontrol/wicontrol.c index 243f8f20c38..eda5e7ce86b 100644 --- a/sbin/wicontrol/wicontrol.c +++ b/sbin/wicontrol/wicontrol.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wicontrol.c,v 1.25 2002/03/31 00:54:03 mickey Exp $ */ +/* $OpenBSD: wicontrol.c,v 1.26 2002/04/01 17:51:23 mickey Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -69,7 +69,7 @@ static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\ Bill Paul. All rights reserved."; static const char rcsid[] = - "@(#) $OpenBSD: wicontrol.c,v 1.25 2002/03/31 00:54:03 mickey Exp $"; + "@(#) $OpenBSD: wicontrol.c,v 1.26 2002/04/01 17:51:23 mickey Exp $"; #endif void wi_getval(char *, struct wi_req *); @@ -181,7 +181,7 @@ wi_setstr(iface, code, str) bzero((char *)&wreq, sizeof(wreq)); - if (strlen(str) > 30) + if (strlen(str) > IEEE80211_NWID_LEN) errx(1, "string too long"); wreq.wi_type = code; |