diff options
Diffstat (limited to 'src/transport/tcp_connection_legacy.c')
-rw-r--r-- | src/transport/tcp_connection_legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/tcp_connection_legacy.c b/src/transport/tcp_connection_legacy.c index 6ecf50b79..cfb088361 100644 --- a/src/transport/tcp_connection_legacy.c +++ b/src/transport/tcp_connection_legacy.c | |||
@@ -901,7 +901,7 @@ GNUNET_CONNECTION_create_from_connect_to_unixpath (const struct GNUNET_CONFIGURA | |||
901 | GNUNET_assert (0 < strlen (unixpath)); /* sanity check */ | 901 | GNUNET_assert (0 < strlen (unixpath)); /* sanity check */ |
902 | un = GNUNET_new (struct sockaddr_un); | 902 | un = GNUNET_new (struct sockaddr_un); |
903 | un->sun_family = AF_UNIX; | 903 | un->sun_family = AF_UNIX; |
904 | strncpy (un->sun_path, unixpath, sizeof (un->sun_path) - 1); | 904 | GNUNET_strlcpy (un->sun_path, unixpath, sizeof (un->sun_path)); |
905 | #ifdef LINUX | 905 | #ifdef LINUX |
906 | { | 906 | { |
907 | int abstract; | 907 | int abstract; |