diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2014-05-06 21:07:13 +0200 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2014-05-06 21:07:13 +0200 |
commit | f5537936d1ad883fec3a79eef3ea76bd4884cb77 (patch) | |
tree | cd501a976ac2aa0317dfc79b238b311f0324a43f | |
parent | ddde4755deda89c061b7f5dcca2883291fd7ef03 (diff) |
-rw-r--r-- | userspace/arptables/arptables.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/userspace/arptables/arptables.c b/userspace/arptables/arptables.c index 3fb8ed5..64ac3aa 100644 --- a/userspace/arptables/arptables.c +++ b/userspace/arptables/arptables.c @@ -763,6 +763,7 @@ parse_hostnetworkmask(const char *name, struct in_addr **addrpp, int i, j, k, n; strncpy(buf, name, sizeof(buf) - 1); + buf[sizeof(buf) - 1] = '\0'; if ((p = strrchr(buf, '/')) != NULL) { *p = '\0'; addrp = parse_mask(p + 1); |