From dbbe9f7de36aa3c7dd61dc89092c03f7902e474e Mon Sep 17 00:00:00 2001 From: Zhang Chunyu Date: Sun, 29 Mar 2015 22:35:47 -0400 Subject: arptables: Add revision field for arptables userspace Signed-off-by: Gao feng Signed-off-by: Zhang Chunyu Signed-off-by: Pablo Neira Ayuso --- libarptc/libarptc_incl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libarptc') 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; } -- cgit v1.2.3