summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-src_servname_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/iptraf/patches/patch-src_servname_c')
-rw-r--r--package/iptraf/patches/patch-src_servname_c12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/iptraf/patches/patch-src_servname_c b/package/iptraf/patches/patch-src_servname_c
new file mode 100644
index 000000000..d0e37bb80
--- /dev/null
+++ b/package/iptraf/patches/patch-src_servname_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- iptraf-3.0.0.orig/src/servname.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.0/src/servname.c 2009-05-21 23:04:24.000000000 +0200
+@@ -27,7 +27,7 @@ void servlook(int servnames, unsigned in
+ {
+ static struct servent *sve;
+
+- bzero(target, maxlen + 1);
++ memset(target, 0, maxlen + 1);
+
+ if (servnames) {
+ if (protocol == IPPROTO_TCP)