123456789101112131415161718192021222324252627282930 |
- $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) {
|