summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-22 15:54:15 -0700
committerGary E. Miller <gem@rellim.com>2018-09-22 15:54:15 -0700
commitde957399546288a56619a8f769a6399eaa215757 (patch)
treeca68c3b814567d7d12d2281dd8f3dfe3aece57e6 /cgps.c
parentcc5f53abb66a2048d9c318898acb22b2d33376e3 (diff)
downloadgpsd-de957399546288a56619a8f769a6399eaa215757.tar.gz
cgps: another attempt to reclaim the lost line.
Diffstat (limited to 'cgps.c')
-rw-r--r--cgps.c4
1 files changed, 2 insertions, 2 deletions
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;