commit | 073df8feb0a8c4023ce40138e519ac9b341b1ca2 | [log] [tgz] |
---|---|---|
author | Karsten Desler <kdesler@soohrt.org> | Sat Jan 31 15:33:55 2004 +0000 |
committer | Martin Josefsson <gandalf@wlug.westbo.se> | Sat Jan 31 15:33:55 2004 +0000 |
tree | b29bb39cfef731e863db577f1ff161e4bf5d3f5f | |
parent | 617b7dd9ef2870e85694ad5212c61fa7c5986ec9 [diff] [blame] |
Fix even more possibly not zero-terminated strings after copy (Karsten Desler)
diff --git a/ip6tables.c b/ip6tables.c index 664b307..16d3ae1 100644 --- a/ip6tables.c +++ b/ip6tables.c
@@ -675,6 +675,7 @@ int i, j, n; strncpy(buf, name, sizeof(buf) - 1); + buf[sizeof(buf) - 1] = '\0'; if ((p = strrchr(buf, '/')) != NULL) { *p = '\0'; addrp = parse_mask(p + 1);