summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-22 15:56:41 -0700
committerGary E. Miller <gem@rellim.com>2018-09-22 15:56:41 -0700
commit720413b5c07fd8edf9a564e115d01183e92592bc (patch)
treebd639647ed670a3df274c44ce6fb82a180890f9e /cgps.c
parentde957399546288a56619a8f769a6399eaa215757 (diff)
downloadgpsd-720413b5c07fd8edf9a564e115d01183e92592bc.tar.gz
cgps: fix the bottom line, again.
Diffstat (limited to 'cgps.c')
-rw-r--r--cgps.c2
1 files changed, 1 insertions, 1 deletions
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, "");
}