summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libwpactrl/wpactrl_filter_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwpactrl/wpactrl_filter_add.c b/src/libwpactrl/wpactrl_filter_add.c
index 52e5b3a..c5d8ebc 100644
--- a/src/libwpactrl/wpactrl_filter_add.c
+++ b/src/libwpactrl/wpactrl_filter_add.c
@@ -9,5 +9,5 @@
int wpactrl_filter_add (wpactrl_t *a, char const *s)
{
if (wpactrl_filter_exact_search(a, s) < a->filters.len) return (errno = EBUSY, 0) ;
- return stralloc_catb(&a->filters, s, strlen(s)) ;
+ return stralloc_catb(&a->filters, s, strlen(s) + 1) ;
}