summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-11-18 20:11:54 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-11-18 20:11:54 +0000
commit05e3598a6d58dffddcc3cf3862027533ea605a74 (patch)
tree496dc702411acaa1d07e50625366b59cef68f1ff /src
parentab9de1b30e760993f6f0c34c28fc0eb8c0e59c00 (diff)
downloadbcnm-05e3598a6d58dffddcc3cf3862027533ea605a74.tar.xz
Remove [ from flags.
Diffstat (limited to 'src')
-rw-r--r--src/libwpactrl/wpactrl_flags_scan.c1
1 files changed, 1 insertions, 0 deletions
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 ;