summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-src_ifstats_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/iptraf/patches/patch-src_ifstats_c')
-rw-r--r--package/iptraf/patches/patch-src_ifstats_c30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/iptraf/patches/patch-src_ifstats_c b/package/iptraf/patches/patch-src_ifstats_c
new file mode 100644
index 000000000..555c93075
--- /dev/null
+++ b/package/iptraf/patches/patch-src_ifstats_c
@@ -0,0 +1,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) {