work around compiler warning

This commit is contained in:
Christian Grothoff 2021-06-24 13:37:54 +02:00
parent 5d6ec4c744
commit 959c4eca1d
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -485,9 +485,11 @@ TEH_RESPONSE_reply_expired_denom_pub_hash (
.h_denom_pub = *dph, .h_denom_pub = *dph,
}; };
strncpy (dua.operation, /* strncpy would create a compiler warning */
memcpy (dua.operation,
oper, oper,
sizeof (dua.operation)); GNUNET_MIN (sizeof (dua.operation),
strlen (oper)));
ecr = TEH_keys_exchange_sign (&dua, ecr = TEH_keys_exchange_sign (&dua,
&epub, &epub,
&esig); &esig);