[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: work around compiler warning
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: work around compiler warning |
Date: |
Thu, 24 Jun 2021 13:37:57 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 959c4eca work around compiler warning
959c4eca is described below
commit 959c4eca1deb72d73616ad312c0a30b37e398cea
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Jun 24 13:37:54 2021 +0200
work around compiler warning
---
src/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
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);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: work around compiler warning,
gnunet <=