diff options
author | Karsten Desler <kdesler@soohrt.org> | 2004-01-31 15:14:38 +0000 |
---|---|---|
committer | Martin Josefsson <gandalf@wlug.westbo.se> | 2004-01-31 15:14:38 +0000 |
commit | 617b7dd9ef2870e85694ad5212c61fa7c5986ec9 (patch) | |
tree | 0bb77e21798a837c90190b7e630f1b3d48a0753c /iptables.c | |
parent | 9cc354fb9cf898ef78e7e817a0464c60dbed3b6e (diff) |
Fix another possibly not zero-terminated string after copy (Karsten Desler)
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -634,6 +634,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); |