gluon-mesh-batman-adv-core: respondd: fix pattern to count clients to work with compat 15

This commit is contained in:
Matthias Schiffer 2016-02-02 17:18:08 +01:00
parent 4ab184cd61
commit d58484c84e

View File

@ -407,9 +407,9 @@ static struct json_object * get_clients(void) {
size_t len = 0; size_t len = 0;
while (getline(&line, &len, f) >= 0) { while (getline(&line, &len, f) >= 0) {
char addr[18], flags[16]; char flags[16];
if (sscanf(line, " * %17[0-9a-fA-F:] [%15[^]]]", addr, flags) != 2) if (sscanf(line, " * %*[^[] [%15[^]]]", flags) != 1)
continue; continue;
if (strchr(flags, 'P')) if (strchr(flags, 'P'))