Skip to content
Snippets Groups Projects
Commit d58484c8 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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

parent 4ab184cd
No related branches found
No related tags found
No related merge requests found
......@@ -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'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment