From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sat, 18 Dec 2021 11:50:40 +0000 (+0530)
Subject: bug fix: do not iterate beyond STEPS
X-Git-Url: https://git.rkrishnan.org/pf/simplejson/module-simplejson.encoder.html?a=commitdiff_plain;h=6d88502766b5c29463eac9fff3d4bace6c19a3c4;p=pihpsdr.git

bug fix: do not iterate beyond STEPS
---

diff --git a/step_menu.c b/step_menu.c
index 64d4650..8670e3a 100644
--- a/step_menu.c
+++ b/step_menu.c
@@ -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 {