summaryrefslogtreecommitdiff
path: root/src/util/crypto_helper_denom.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-15 12:18:27 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-15 12:18:27 +0100
commit7c8d8b79178403a8c43ee4cc82b421d8fe978246 (patch)
tree9c7dbc1804a703902724ff0898c174dbcbf44e6f /src/util/crypto_helper_denom.c
parent3b9c3811122f1d28cfa23579669ce21ca9d211ce (diff)
downloadexchange-7c8d8b79178403a8c43ee4cc82b421d8fe978246.tar.gz
exchange-7c8d8b79178403a8c43ee4cc82b421d8fe978246.tar.bz2
exchange-7c8d8b79178403a8c43ee4cc82b421d8fe978246.zip
improve logging
Diffstat (limited to 'src/util/crypto_helper_denom.c')
-rw-r--r--src/util/crypto_helper_denom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index 01ed66261..1ef24d3f9 100644
--- a/src/util/crypto_helper_denom.c
+++ b/src/util/crypto_helper_denom.c
@@ -126,7 +126,7 @@ try_connect (struct TALER_CRYPTO_DenominationHelper *dh)
dh->my_sa.sun_family = AF_UNIX;
strncpy (dh->my_sa.sun_path,
tmpdir,
- sizeof (dh->sa.sun_path));
+ sizeof (dh->sa.sun_path) - 1);
if (0 != unlink (tmpdir))
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
"unlink",
@@ -219,7 +219,7 @@ TALER_CRYPTO_helper_denom_connect (
dh->sa.sun_family = AF_UNIX;
strncpy (dh->sa.sun_path,
unixpath,
- sizeof (dh->sa.sun_path));
+ sizeof (dh->sa.sun_path) - 1);
dh->sock = -1;
{
char *tmpdir;