summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-21 13:20:25 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-21 13:20:25 +0100
commit2aa77fdd1ce970aa5421e8fd4e8fb5b1270dbf38 (patch)
treea03e752db854822b85de3b4e8e3ae93d04091a71
parent99b3ed45fa238cfe470db99e01a634e46d5b45f8 (diff)
downloadexchange-2aa77fdd1ce970aa5421e8fd4e8fb5b1270dbf38.tar.gz
exchange-2aa77fdd1ce970aa5421e8fd4e8fb5b1270dbf38.tar.bz2
exchange-2aa77fdd1ce970aa5421e8fd4e8fb5b1270dbf38.zip
work around compiler warning, ensure we leave 0-terminator, even though it is not required by the kernel
-rw-r--r--debian/libtalerexchange-dev.install1
-rw-r--r--debian/libtalerexchange.install4
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c2
-rw-r--r--src/util/taler-exchange-secmod-rsa.c2
4 files changed, 7 insertions, 2 deletions
diff --git a/debian/libtalerexchange-dev.install b/debian/libtalerexchange-dev.install
new file mode 100644
index 000000000..fa4fdfdb8
--- /dev/null
+++ b/debian/libtalerexchange-dev.install
@@ -0,0 +1 @@
+usr/include/taler/*
diff --git a/debian/libtalerexchange.install b/debian/libtalerexchange.install
new file mode 100644
index 000000000..b9cb4f1cc
--- /dev/null
+++ b/debian/libtalerexchange.install
@@ -0,0 +1,4 @@
+usr/bin/taler-config
+usr/lib/*/libtaler*
+usr/share/taler/config.d/*
+usr/share/taler/sql/*
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index 609a5361f..cd3fc22f1 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -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)))
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index 10a52af00..41d78bcf3 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -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)))