ref: 251e348cfd67d94d3ec7bd3282b2cf59eab6a1d0
parent: 9943701e6dbdc8ad032342f0b8dbb4467828b948
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 16 19:53:02 EST 2014
wpa: handle essid: with whitespaces from ether ifstats file
--- a/sys/src/cmd/aux/wpa.c
+++ b/sys/src/cmd/aux/wpa.c
@@ -138,7 +138,7 @@
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;
--
⑨