]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
bug fix: do not iterate beyond STEPS
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 18 Dec 2021 11:50:40 +0000 (17:20 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 18 Dec 2021 11:50:40 +0000 (17:20 +0530)
step_menu.c

index 64d46506a92076dc0213fa386c69fc388e7404a6..8670e3aa828b5f05743720b677180ef0191d8e93 100644 (file)
@@ -87,7 +87,7 @@ void step_menu(GtkWidget *parent) {
 
   GtkWidget *step_rb=NULL;
   int i=0;
-  while(steps[i]!=0) {
+  while(i < STEPS) {
     if(i==0) {
       step_rb=gtk_radio_button_new_with_label(NULL,step_labels[i]);
     } else {