summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-11 15:46:41 -0800
committerGary E. Miller <gem@rellim.com>2018-11-11 15:46:41 -0800
commit8346c4cfeaba1ec09e173ae54c76642fcd58df1b (patch)
treefad130ed2c2fb93d75748c385559582645afefdc
parent5aea7fa52080b29ae9811ade34fc28112f322812 (diff)
downloadgpsd-8346c4cfeaba1ec09e173ae54c76642fcd58df1b.tar.gz
gpsrinex: Off by one error.
-rw-r--r--gpsrinex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsrinex.c b/gpsrinex.c
index 6112fe31..cf59a18a 100644
--- a/gpsrinex.c
+++ b/gpsrinex.c
@@ -342,7 +342,7 @@ static void print_rinex_header(void)
/* done */
break;
}
- for (j = 0; j <= CODEMAX; j++) {
+ for (j = 0; j < CODEMAX; j++) {
cnt += obs_cnt[i].obs_cnts[j];
}
if (0 > cnt) {