summaryrefslogtreecommitdiffstats
path: root/libarptc
diff options
context:
space:
mode:
authorZhang Chunyu <zhangcy@cn.fujitsu.com>2015-03-29 22:35:47 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2015-04-16 13:04:12 +0200
commitdbbe9f7de36aa3c7dd61dc89092c03f7902e474e (patch)
tree35a473acfc8d24cfb9af26176fd387260b9db343 /libarptc
parent935acea0326785834b22f2233e1b1e3f8d000f7d (diff)
arptables: Add revision field for arptables userspace
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: Zhang Chunyu <zhangcy@cn.fujitsu.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libarptc')
-rw-r--r--libarptc/libarptc_incl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarptc/libarptc_incl.c b/libarptc/libarptc_incl.c
index a034930..87404ce 100644
--- a/libarptc/libarptc_incl.c
+++ b/libarptc/libarptc_incl.c
@@ -872,7 +872,7 @@ map_target(const TC_HANDLE_T handle,
/* memset to all 0 for your memcmp convenience. */
memset(t->u.user.name + strlen(t->u.user.name),
0,
- FUNCTION_MAXNAMELEN - strlen(t->u.user.name));
+ FUNCTION_MAXNAMELEN - 1 - strlen(t->u.user.name));
return 1;
}