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 /gps2udp.c | |
parent | 0dfc815a83d036fcdd027e331c77b7da330246e5 (diff) | |
download | gpsd-679ad1b39528615dbaeb22bc741b93dc3c3ee4fb.tar.gz |
Cleanup of string function and sizeof usage. All regression tests pass.
Diffstat (limited to 'gps2udp.c')
-rw-r--r-- | gps2udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -473,7 +473,7 @@ int main(int argc, char **argv) unsigned char bitstrings [255]; // strtok break original string - (void)strncpy((char *)packet, buffer, sizeof(packet)); + (void)strlcpy((char *)packet, buffer, sizeof(packet)); for (j=0; j<MAX_INFO; j++) { info[j] = (unsigned char *)strsep((char **)&adrpkt, ","); } |