exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 959c4eca1deb72d73616ad312c0a30b37e398cea
parent 5d6ec4c7443e1a69766fa7cf507dbcfe096d52a8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 24 Jun 2021 13:37:54 +0200

work around compiler warning

Diffstat:
Msrc/exchange/taler-exchange-httpd_responses.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 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);