diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-11-18 20:11:54 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-11-18 20:11:54 +0000 |
commit | 05e3598a6d58dffddcc3cf3862027533ea605a74 (patch) | |
tree | 496dc702411acaa1d07e50625366b59cef68f1ff | |
parent | ab9de1b30e760993f6f0c34c28fc0eb8c0e59c00 (diff) | |
download | bcnm-05e3598a6d58dffddcc3cf3862027533ea605a74.tar.gz bcnm-05e3598a6d58dffddcc3cf3862027533ea605a74.tar.xz bcnm-05e3598a6d58dffddcc3cf3862027533ea605a74.zip |
Remove [ from flags.
-rw-r--r-- | src/libwpactrl/wpactrl_flags_scan.c | 1 |
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 ; |