work around compiler warning, ensure we leave 0-terminator, even though it is not required by the kernel

This commit is contained in:
Christian Grothoff 2021-01-21 13:20:25 +01:00
parent 99b3ed45fa
commit 2aa77fdd1c
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
4 changed files with 7 additions and 2 deletions

1
debian/libtalerexchange-dev.install vendored Normal file
View File

@ -0,0 +1 @@
usr/include/taler/*

4
debian/libtalerexchange.install vendored Normal file
View File

@ -0,0 +1,4 @@
usr/bin/taler-config
usr/lib/*/libtaler*
usr/share/taler/config.d/*
usr/share/taler/sql/*

View File

@ -1558,7 +1558,7 @@ run (void *cls,
un.sun_family = AF_UNIX;
strncpy (un.sun_path,
unixpath,
sizeof (un.sun_path));
sizeof (un.sun_path) - 1);
if (0 != bind (sock,
(const struct sockaddr *) &un,
sizeof (un)))

View File

@ -1934,7 +1934,7 @@ run (void *cls,
un.sun_family = AF_UNIX;
strncpy (un.sun_path,
unixpath,
sizeof (un.sun_path));
sizeof (un.sun_path) - 1);
if (0 != bind (sock,
(const struct sockaddr *) &un,
sizeof (un)))