summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-src_ifstats_c
blob: ac8f39d61174e0c3016cc6a5a244c6b602df4622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- iptraf-3.0.1.orig/src/ifstats.c	2005-09-13 08:42:54.000000000 +0200
+++ iptraf-3.0.1/src/ifstats.c	2013-03-04 11:35:39.000000000 +0100
@@ -167,7 +167,7 @@ void initiflist(struct iflist **list)
              */
 
             itmp = malloc(sizeof(struct iflist));
-            bzero(itmp, sizeof(struct iflist));
+            memset(itmp, 0, sizeof(struct iflist));
             strcpy(itmp->ifname, ifname);
             index++;
             itmp->index = index;
@@ -208,7 +208,7 @@ void positionptr(struct iftab *table, st
 
     if (*ptmp == NULL) {
         *ptmp = malloc(sizeof(struct iflist));
-        bzero(*ptmp, sizeof(struct iflist));
+        memset(*ptmp, 0, sizeof(struct iflist));
         (*ptmp)->index = plast->index + 1;
         plast->next_entry = *ptmp;
         (*ptmp)->prev_entry = plast;
@@ -879,7 +879,7 @@ void detstats(char *iface, const struct
     update_panels();
     doupdate();
 
-    bzero(&totals, sizeof(struct iftotals));
+    memset(&totals, 0, sizeof(struct iftotals));
 
     if (logging) {
         if (strcmp(current_logfile, "") == 0) {