diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-01-21 13:20:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-01-21 13:20:25 +0100 |
commit | 2aa77fdd1ce970aa5421e8fd4e8fb5b1270dbf38 (patch) | |
tree | a03e752db854822b85de3b4e8e3ae93d04091a71 /src/util/taler-exchange-secmod-eddsa.c | |
parent | 99b3ed45fa238cfe470db99e01a634e46d5b45f8 (diff) | |
download | exchange-2aa77fdd1ce970aa5421e8fd4e8fb5b1270dbf38.tar.xz |
work around compiler warning, ensure we leave 0-terminator, even though it is not required by the kernel
Diffstat (limited to 'src/util/taler-exchange-secmod-eddsa.c')
-rw-r--r-- | src/util/taler-exchange-secmod-eddsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))) |