summaryrefslogtreecommitdiffstats
path: root/libarptc
diff options
context:
space:
mode:
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;
}