From 99ad2b2c9ac88b1a784edc964ea479286998c00a Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sun, 2 Jan 2022 19:44:34 +0530
Subject: [PATCH] vfo display: another bug fix

---
 vfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vfo.c b/vfo.c
index 8cb833e..2c80ece 100644
--- a/vfo.c
+++ b/vfo.c
@@ -928,7 +928,7 @@ char **draw_vfo_val(char *vfo_str, int step) {
 
     s2[0] = vfo_str[l - step_index - 1];
 
-    for (int i = 0; i < step; i++) {
+    for (int i = 0; i < step_index; i++) {
         s3[i] = vfo_str[l - step_index + i];
     }
 
-- 
2.45.2