summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-support_listbox_c
blob: 0d760507a526dcbd038d55c54e7831214771c2af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- iptraf-3.0.1.orig/support/listbox.c	2002-07-19 18:48:11.000000000 +0200
+++ iptraf-3.0.1/support/listbox.c	2013-03-04 11:35:39.000000000 +0100
@@ -19,7 +19,7 @@ void tx_init_listbox(struct scroll_list
                       int mainattr, int borderattr, int selectattr,
                       int keyattr)
 {
-    bzero(list, sizeof(struct scroll_list));
+    memset(list, 0, sizeof(struct scroll_list));
     list->borderwin = newwin(height, width, starty, startx);
     list->borderpanel = new_panel(list->borderwin);
     wattrset(list->borderwin, borderattr);
@@ -50,7 +50,7 @@ void tx_add_list_entry(struct scroll_lis
     struct textlisttype *ptmp;
     
     ptmp = malloc(sizeof(struct textlisttype));
-    bzero(ptmp, sizeof(struct textlisttype));
+    memset(ptmp, 0, sizeof(struct textlisttype));
         
     strncpy(ptmp->text, text, MAX_TEXT_LENGTH);
     ptmp->nodeptr = node;