1
0

patch-src_ifstats_c 1.1 KB

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