summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-04-01 17:51:24 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-04-01 17:51:24 +0000
commit1c9fa54b2c618dc316333d709c7bc7756824e7a6 (patch)
tree59b4234a5b1693ba9d169e5da95b24602739ce42
parentf03b76f58a988d277c9b672cfe0930124103216d (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.c6
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;