summaryrefslogtreecommitdiff
path: root/net-analyzer/darkstat/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/darkstat/files')
-rw-r--r--net-analyzer/darkstat/files/darkstat-3.0.719-strncpy-off-by-one.patch11
-rw-r--r--net-analyzer/darkstat/files/darkstat-confd4
2 files changed, 13 insertions, 2 deletions
diff --git a/net-analyzer/darkstat/files/darkstat-3.0.719-strncpy-off-by-one.patch b/net-analyzer/darkstat/files/darkstat-3.0.719-strncpy-off-by-one.patch
new file mode 100644
index 000000000000..cab429c0ecec
--- /dev/null
+++ b/net-analyzer/darkstat/files/darkstat-3.0.719-strncpy-off-by-one.patch
@@ -0,0 +1,11 @@
+--- a/localip.c
++++ b/localip.c
+@@ -58,7 +58,7 @@
+ } else {
+ /* Warn about changed address. */
+ if (!addr_equal(ips->addrs + *idx, a)) {
+- static char before[INET6_ADDRSTRLEN];
++ static char before[INET6_ADDRSTRLEN + 1];
+ strncpy(before, addr_to_str(ips->addrs + *idx), INET6_ADDRSTRLEN);
+ verbosef("interface '%s' address %d/%d changed from %s to %s",
+ iface, *idx+1, ips->num_addrs, before, addr_to_str(a));
diff --git a/net-analyzer/darkstat/files/darkstat-confd b/net-analyzer/darkstat/files/darkstat-confd
index 3d95a0461a06..89e349e68868 100644
--- a/net-analyzer/darkstat/files/darkstat-confd
+++ b/net-analyzer/darkstat/files/darkstat-confd
@@ -6,10 +6,10 @@
# The port for the embedded webserver
#PORT="667"
-# The address embedded webserver should bind to
+# The address the embedded webserver should bind to
#ADDRESS="0.0.0.0"
-# Set the filter. See tcpdump documenation for details.
+# Set the filter. See tcpdump documentation for details.
#FILTER=""
# Log daily traffic statistics into the named file, relative to the