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.gz exchange-959c4eca1deb72d73616ad312c0a30b37e398cea.zip |
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 ( | |||
485 | .h_denom_pub = *dph, | 485 | .h_denom_pub = *dph, |
486 | }; | 486 | }; |
487 | 487 | ||
488 | strncpy (dua.operation, | 488 | /* strncpy would create a compiler warning */ |
489 | oper, | 489 | memcpy (dua.operation, |
490 | sizeof (dua.operation)); | 490 | oper, |
491 | GNUNET_MIN (sizeof (dua.operation), | ||
492 | strlen (oper))); | ||
491 | ecr = TEH_keys_exchange_sign (&dua, | 493 | ecr = TEH_keys_exchange_sign (&dua, |
492 | &epub, | 494 | &epub, |
493 | &esig); | 495 | &esig); |