]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
vfo display: another bug fix
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sun, 2 Jan 2022 14:14:34 +0000 (19:44 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sun, 2 Jan 2022 14:14:34 +0000 (19:44 +0530)
vfo.c

diff --git a/vfo.c b/vfo.c
index 8cb833e265da7bc36344d003409e43d49e743485..2c80ecef7a58b02edfa30092b9f3d5a7cedc0faf 100644 (file)
--- 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];
     }