patch-support_listbox_c 949 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- iptraf-3.0.0.orig/support/listbox.c 2002-07-19 18:48:11.000000000 +0200
  3. +++ iptraf-3.0.0/support/listbox.c 2009-05-21 23:06:00.000000000 +0200
  4. @@ -19,7 +19,7 @@ void tx_init_listbox(struct scroll_list
  5. int mainattr, int borderattr, int selectattr,
  6. int keyattr)
  7. {
  8. - bzero(list, sizeof(struct scroll_list));
  9. + memset(list, 0, sizeof(struct scroll_list));
  10. list->borderwin = newwin(height, width, starty, startx);
  11. list->borderpanel = new_panel(list->borderwin);
  12. wattrset(list->borderwin, borderattr);
  13. @@ -50,7 +50,7 @@ void tx_add_list_entry(struct scroll_lis
  14. struct textlisttype *ptmp;
  15. ptmp = malloc(sizeof(struct textlisttype));
  16. - bzero(ptmp, sizeof(struct textlisttype));
  17. + memset(ptmp, 0, sizeof(struct textlisttype));
  18. strncpy(ptmp->text, text, MAX_TEXT_LENGTH);
  19. ptmp->nodeptr = node;