diff options
author | Zbigniew Chyla <zbigniew.chyla@nsn.com> | 2015-01-13 07:19:30 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-13 07:19:30 -0500 |
commit | 679ad1b39528615dbaeb22bc741b93dc3c3ee4fb (patch) | |
tree | 28a1d78ac0e73e1cacd1428366ab86f61253859f /driver_ais.c | |
parent | 0dfc815a83d036fcdd027e331c77b7da330246e5 (diff) | |
download | gpsd-679ad1b39528615dbaeb22bc741b93dc3c3ee4fb.tar.gz |
Cleanup of string function and sizeof usage. All regression tests pass.
Diffstat (limited to 'driver_ais.c')
-rw-r--r-- | driver_ais.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ais.c b/driver_ais.c index 8f4d494e..68430894 100644 --- a/driver_ais.c +++ b/driver_ais.c @@ -989,7 +989,7 @@ bool ais_binary_decode(const struct gpsd_errout_t *errout, if (type24_queue->ships[i].mmsi == ais->mmsi) { (void)strlcpy(ais->type24.shipname, type24_queue->ships[i].shipname, - sizeof(type24_queue->ships[i].shipname)); + sizeof(ais->type24.shipname)); gpsd_report(errout, LOG_PROG, "AIVDM 24B from %09u matches a 24A.\n", ais->mmsi); |