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
1 changed files with 2 additions and 2 deletions

View File

@ -407,9 +407,9 @@ static struct json_object * get_clients(void) {
size_t len = 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;
if (strchr(flags, 'P'))