From d58484c84ecafc9d16895497097561ede9be8c27 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 2 Feb 2016 17:18:08 +0100 Subject: [PATCH] gluon-mesh-batman-adv-core: respondd: fix pattern to count clients to work with compat 15 --- package/gluon-mesh-batman-adv-core/src/respondd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-mesh-batman-adv-core/src/respondd.c b/package/gluon-mesh-batman-adv-core/src/respondd.c index cc1c59cc..7ffb94c1 100644 --- a/package/gluon-mesh-batman-adv-core/src/respondd.c +++ b/package/gluon-mesh-batman-adv-core/src/respondd.c @@ -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'))