From 5d8ab4fef62b96e96bea1c362c1fafb36f9bce23 Mon Sep 17 00:00:00 2001 From: brooks Date: Sat, 1 Nov 2003 00:03:20 +0000 Subject: [PATCH] We want the length of the string, not the size of its pointer. --- sbin/ifconfig/ifieee80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index a32d7c9c3265..031dc8f03b4d 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -103,7 +103,7 @@ set80211ssid(const char *val, int d, int s, const struct afswtch *rafp) u_int8_t data[33]; ssid = 0; - len = sizeof(val); + len = strlen(val); if (len > 2 && isdigit(val[0]) && val[1] == ':') { ssid = atoi(val)-1; val += 2;