work around compiler warning
This commit is contained in:
parent
5d6ec4c744
commit
959c4eca1d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user