diff options
author | gandalf <gandalf> | 2004-01-31 13:22:18 +0000 |
---|---|---|
committer | gandalf <gandalf> | 2004-01-31 13:22:18 +0000 |
commit | cd9735fb78524e6dcb4111db4c2f0f4a7ddaad9b (patch) | |
tree | a153ccbe02a71f78e29247f2f13cb8e9c27b2c49 /iptables.c | |
parent | ddc013c214260f9cb75e040e3a2e3428faaf92da (diff) |
Fix 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
@@ -268,6 +268,7 @@ dotted_to_addr(const char *dotted) /* copy dotted string, because we need to modify it */ strncpy(buf, dotted, sizeof(buf) - 1); + buf[sizeof(buf) - 1] = '\0'; addrp = (unsigned char *) &(addr.s_addr); p = buf; |