diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-11-17 00:53:02 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-11-17 00:53:02 +0100 |
commit | fbdaa03d8470f90d269da01fe1bd2453f3387f04 (patch) | |
tree | b4fe2f68971b0cdd03c7673643077572915b2186 /sys/src | |
parent | 2310258d576c0ee688025ef8bd854640621a833e (diff) |
wpa: handle essid: with whitespaces from ether ifstats file
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/cmd/aux/wpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/wpa.c b/sys/src/cmd/aux/wpa.c index 42dfc31d4..12c4fb850 100644 --- a/sys/src/cmd/aux/wpa.c +++ b/sys/src/cmd/aux/wpa.c @@ -138,7 +138,7 @@ getifstats(char *key, char *val, int nval) buf[n] = 0; for(p = buf; (e = strchr(p, '\n')) != nil; p = e){ *e++ = 0; - if(tokenize(p, f, 2) != 2) + if(gettokens(p, f, 2, "\t\r\n ") != 2) continue; if(strcmp(f[0], key) != 0) continue; |