summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_xchg_event.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-11-17 14:08:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-11-17 14:08:44 +0000
commit29c3282e7c73474642dc48d60ef90d79385c2a1b (patch)
tree06eb15ec1674fe35f78d2ddff7ca90b314308a01 /src/libwpactrl/wpactrl_xchg_event.c
parentcc74d3000e81af2533c386b7f55912f2e60e5a99 (diff)
downloadbcnm-29c3282e7c73474642dc48d60ef90d79385c2a1b.tar.xz
Apply smaeul's fixes; add --with-tmpdir configure option
Diffstat (limited to 'src/libwpactrl/wpactrl_xchg_event.c')
-rw-r--r--src/libwpactrl/wpactrl_xchg_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwpactrl/wpactrl_xchg_event.c b/src/libwpactrl/wpactrl_xchg_event.c
index e9d2f06..d639d24 100644
--- a/src/libwpactrl/wpactrl_xchg_event.c
+++ b/src/libwpactrl/wpactrl_xchg_event.c
@@ -27,7 +27,7 @@ int wpactrl_xchg_event (wpactrl_t *a, wpactrl_xchg_t *dt, tain_t *stamp)
if (pos >= a->data.len) return 0 ;
len = strlen(a->data.s + pos) + 1 ;
if (!(*dt->tab[dt->i].cb)(a, a->data.s + pos, len - 1, dt->aux, stamp)) return -2 ;
- memmove(a->data.s + pos, a->data.s + pos + len, a->data.len - len) ;
+ memmove(a->data.s + pos, a->data.s + pos + len, a->data.len - pos - len) ;
a->data.len -= len ;
wpactrl_filter_remove(a, dt->tab[dt->i].filter) ;
if (++dt->i == dt->n)