summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew.chyla@nsn.com>2015-01-13 07:19:30 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-13 07:19:30 -0500
commit679ad1b39528615dbaeb22bc741b93dc3c3ee4fb (patch)
tree28a1d78ac0e73e1cacd1428366ab86f61253859f /gps2udp.c
parent0dfc815a83d036fcdd027e331c77b7da330246e5 (diff)
downloadgpsd-679ad1b39528615dbaeb22bc741b93dc3c3ee4fb.tar.gz
Cleanup of string function and sizeof usage. All regression tests pass.
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps2udp.c b/gps2udp.c
index d753923b..0d08d419 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -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, ",");
}