We want the length of the string, not the size of its pointer.
This commit is contained in:
parent
a29eaca969
commit
5d8ab4fef6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user