aboutsummaryrefslogtreecommitdiff
path: root/src/util/client.c
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2019-06-27 10:49:40 +0200
committerlurchi <lurchi@strangeplace.net>2019-06-27 10:49:40 +0200
commitb9771c5f5edcbeb965fa291a281943d866c3ddb6 (patch)
treee53141e844dfe7032d018cb5bfebd31fe02f7816 /src/util/client.c
parent0e7c93c3a0a3aa966503a8ae4caf3a21914e4126 (diff)
downloadgnunet-b9771c5f5edcbeb965fa291a281943d866c3ddb6.tar.gz
gnunet-b9771c5f5edcbeb965fa291a281943d866c3ddb6.zip
use GNUNET_strlcpy instead of strncpy where possible
Diffstat (limited to 'src/util/client.c')
-rw-r--r--src/util/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/client.c b/src/util/client.c
index 05e05a328..313cc23af 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -532,9 +532,9 @@ try_unixpath (const char *service_name,
532 0, 532 0,
533 sizeof (s_un)); 533 sizeof (s_un));
534 s_un.sun_family = AF_UNIX; 534 s_un.sun_family = AF_UNIX;
535 strncpy (s_un.sun_path, 535 GNUNET_strlcpy (s_un.sun_path,
536 unixpath, 536 unixpath,
537 sizeof (s_un.sun_path) - 1); 537 sizeof (s_un.sun_path));
538#ifdef LINUX 538#ifdef LINUX
539 { 539 {
540 int abstract; 540 int abstract;