summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-support_listbox_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/iptraf/patches/patch-support_listbox_c')
-rw-r--r--package/iptraf/patches/patch-support_listbox_c21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/iptraf/patches/patch-support_listbox_c b/package/iptraf/patches/patch-support_listbox_c
new file mode 100644
index 000000000..df5521b7f
--- /dev/null
+++ b/package/iptraf/patches/patch-support_listbox_c
@@ -0,0 +1,21 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- iptraf-3.0.0.orig/support/listbox.c 2002-07-19 18:48:11.000000000 +0200
++++ iptraf-3.0.0/support/listbox.c 2009-05-21 23:06:00.000000000 +0200
+@@ -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;