summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-src_ifstats_c
blob: 555c93075a10a5a10b4e27f9823acfdaf291cbf0 (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.0.orig/src/ifstats.c	2005-09-13 08:42:54.000000000 +0200
+++ iptraf-3.0.0/src/ifstats.c	2009-05-21 23:05:17.000000000 +0200
@@ -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) {