summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-05-09 13:32:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-05-09 13:32:39 -0400
commitb49756c40c6b08cc53857cd457e6db0bc99079a9 (patch)
tree0f5e5b771a437a36ba896f09b824f9274cecfd57 /gpsdecode.c
parent1adf3b9d7e90578daaa897f349062fcb9e917152 (diff)
downloadgpsd-b49756c40c6b08cc53857cd457e6db0bc99079a9.tar.gz
C AIS decoder now has separate contexts for A and B channels.
AIS regression test passes.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdecode.c b/gpsdecode.c
index f952ffc7..10b389e8 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -365,7 +365,7 @@ static void decode(FILE * fpin, FILE * fpout)
struct rtcm2_t rtcm2;
struct rtcm3_t rtcm3;
struct ais_t ais;
- struct aivdm_context_t aivdm;
+ struct aivdm_context_t aivdm[AIVDM_CHANNELS];
char buf[BUFSIZ];
memset(&aivdm, '\0', sizeof(aivdm));