diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-06-24 13:37:54 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-06-24 13:37:54 +0200 |
commit | 959c4eca1deb72d73616ad312c0a30b37e398cea (patch) | |
tree | 0b4df5163dd0a52950a5318cae062a71e4b59b05 | |
parent | 5d6ec4c7443e1a69766fa7cf507dbcfe096d52a8 (diff) | |
download | exchange-959c4eca1deb72d73616ad312c0a30b37e398cea.tar.xz |
work around compiler warning
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 8 |
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 4bb3ffd48..c2fa9b1d2 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); |