From 679ad1b39528615dbaeb22bc741b93dc3c3ee4fb Mon Sep 17 00:00:00 2001 From: Zbigniew Chyla Date: Tue, 13 Jan 2015 07:19:30 -0500 Subject: Cleanup of string function and sizeof usage. All regression tests pass. --- gps2udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gps2udp.c') 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