ref: fbdaa03d8470f90d269da01fe1bd2453f3387f04
parent: 2310258d576c0ee688025ef8bd854640621a833e
author: cinap_lenrek <[email protected]>
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;