We want the length of the string, not the size of its pointer.

This commit is contained in:
Brooks Davis 2003-11-01 00:03:20 +00:00
parent 3fdb39034f
commit 405077fd53

View File

@ -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;