From de957399546288a56619a8f769a6399eaa215757 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Sat, 22 Sep 2018 15:54:15 -0700 Subject: cgps: another attempt to reclaim the lost line. --- cgps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgps.c') diff --git a/cgps.c b/cgps.c index eb9ac84a..b5e07adc 100644 --- a/cgps.c +++ b/cgps.c @@ -30,7 +30,7 @@ /* This defines how much overhead is contained in the 'satellites' window (eg, box around the window takes two lines, plus the column headers take another line). */ -#define SATWIN_OVERHEAD 3 +#define SATWIN_OVERHEAD 2 /* This is how many display fields are output in the 'datawin' window when in GPS mode. Change this value if you add or remove fields @@ -551,7 +551,7 @@ static void update_gps_panel(struct gps_data_t *gpsdata, char *message) qsort( gpsdata->skyview, gpsdata->satellites_visible, sizeof( struct satellite_t), sat_cmp); /* displayed all sats that fit, maybe all of them */ - for (sat_no = 0; sat_no <= loop_end; sat_no++) { + for (sat_no = 0; sat_no < loop_end; sat_no++) { int column = 1; /* column to write to */ char *gnssid; -- cgit v1.2.1