From 720413b5c07fd8edf9a564e115d01183e92592bc Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Sat, 22 Sep 2018 15:56:41 -0700 Subject: cgps: fix the bottom line, again. --- cgps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgps.c b/cgps.c index b5e07adc..c389c9ed 100644 --- a/cgps.c +++ b/cgps.c @@ -617,7 +617,7 @@ static void update_gps_panel(struct gps_data_t *gpsdata, char *message) (void)mvwprintw(satellites, sat_no + 2, 1, "%s", "More..."); } else { /* Clear old data from the unused lines at bottom. */ - for ( ; sat_no <= display_sats; sat_no++) { + for ( ; sat_no < display_sats; sat_no++) { (void)mvwprintw(satellites, sat_no + 2, 1, "%-*s", SATELLITES_WIDTH - 3, ""); } -- cgit v1.2.1