From 05e3598a6d58dffddcc3cf3862027533ea605a74 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 18 Nov 2019 20:11:54 +0000 Subject: Remove [ from flags. --- src/libwpactrl/wpactrl_flags_scan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/libwpactrl/wpactrl_flags_scan.c b/src/libwpactrl/wpactrl_flags_scan.c index e8eecf5..6e18cd4 100644 --- a/src/libwpactrl/wpactrl_flags_scan.c +++ b/src/libwpactrl/wpactrl_flags_scan.c @@ -14,6 +14,7 @@ size_t wpactrl_flags_scan (char const *t, stralloc *sa) while (*s == '[') { size_t pos ; + s++; pos = str_chr(s, ']') ; if (!s[pos]) goto eproto ; if (!stralloc_catb(sa, s, pos) || !stralloc_0(sa)) goto err ; -- cgit 1.4.1