summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-06-24 13:37:54 +0200
committerChristian Grothoff <christian@grothoff.org>2021-06-24 13:37:54 +0200
commit959c4eca1deb72d73616ad312c0a30b37e398cea (patch)
tree0b4df5163dd0a52950a5318cae062a71e4b59b05 /src/exchange/taler-exchange-httpd_responses.c
parent5d6ec4c7443e1a69766fa7cf507dbcfe096d52a8 (diff)
downloadexchange-959c4eca1deb72d73616ad312c0a30b37e398cea.tar.gz
exchange-959c4eca1deb72d73616ad312c0a30b37e398cea.tar.bz2
exchange-959c4eca1deb72d73616ad312c0a30b37e398cea.zip
work around compiler warning
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
index 4bb3ffd4..c2fa9b1d 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -485,9 +485,11 @@ TEH_RESPONSE_reply_expired_denom_pub_hash (
.h_denom_pub = *dph,
};
- strncpy (dua.operation,
- oper,
- sizeof (dua.operation));
+ /* strncpy would create a compiler warning */
+ memcpy (dua.operation,
+ oper,
+ GNUNET_MIN (sizeof (dua.operation),
+ strlen (oper)));
ecr = TEH_keys_exchange_sign (&dua,
&epub,
&esig);