diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-24 13:29:56 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-24 13:29:56 -0400 |
commit | 8c7d91975cd63312272edee54aa7b8bdec1f7c17 (patch) | |
tree | 32a5a6db94708989257f83a457b66bdd08d6071f /driver_ais.c | |
parent | 6ed6c19c2309980751cd4609d7ec64180174b23f (diff) | |
download | gpsd-8c7d91975cd63312272edee54aa7b8bdec1f7c17.tar.gz |
Fix Savannah bug #44619: Bad latitude value for message type 17
Required one checkfile rebuild to integrate the sentence that triggered
the error. All regression tests pass.
Diffstat (limited to 'driver_ais.c')
-rw-r--r-- | driver_ais.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_ais.c b/driver_ais.c index 5fe727c8..efc897de 100644 --- a/driver_ais.c +++ b/driver_ais.c @@ -809,8 +809,8 @@ bool ais_binary_decode(const struct gpsd_errout_t *errout, case 17: /* GNSS Broadcast Binary Message */ RANGE_CHECK(80, 816); //ais->type17.spare = UBITS(38, 2); - ais->type17.lon = UBITS(40, 18); - ais->type17.lat = UBITS(58, 17); + ais->type17.lon = SBITS(40, 18); + ais->type17.lat = SBITS(58, 17); //ais->type17.spare = UBITS(75, 5); ais->type17.bitcount = bitlen - 80; (void)memcpy(ais->type17.bitdata, |