diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-22 15:54:15 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-22 15:54:15 -0700 |
commit | de957399546288a56619a8f769a6399eaa215757 (patch) | |
tree | ca68c3b814567d7d12d2281dd8f3dfe3aece57e6 /cgps.c | |
parent | cc5f53abb66a2048d9c318898acb22b2d33376e3 (diff) | |
download | gpsd-de957399546288a56619a8f769a6399eaa215757.tar.gz |
cgps: another attempt to reclaim the lost line.
Diffstat (limited to 'cgps.c')
-rw-r--r-- | cgps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |