summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-src_servname_c
blob: d0e37bb801b1202189b5b845457cf5be9762e3ce (plain)
1
2
3
4
5
6
7
8
9
10
11
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)