diff dwtest.c @ 2521:5f92284e2b08

Android: Implement bitmap buttons, implement dw_listbox_selected_multi(). Added a number of safety checks to prevent java exceptions.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 09 May 2021 09:31:14 +0000
parents fa976a5bc7bd
children 457c91634881
line wrap: on
line diff
--- a/dwtest.c	Sat May 08 23:22:52 2021 +0000
+++ b/dwtest.c	Sun May 09 09:31:14 2021 +0000
@@ -643,9 +643,9 @@
     unsigned int idx;
     int len;
     long spvalue;
-    char buf1[100];
-    char buf2[100];
-    char buf3[500];
+    char buf1[100] = {0};
+    char buf2[100] = {0};
+    char buf3[500] = {0};
 
     idx = dw_listbox_selected(combobox1);
     dw_listbox_get_text(combobox1, idx, buf1, 99);