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,
|
.h_denom_pub = *dph,
|
||||||
};
|
};
|
||||||
|
|
||||||
strncpy (dua.operation,
|
/* strncpy would create a compiler warning */
|
||||||
oper,
|
memcpy (dua.operation,
|
||||||
sizeof (dua.operation));
|
oper,
|
||||||
|
GNUNET_MIN (sizeof (dua.operation),
|
||||||
|
strlen (oper)));
|
||||||
ecr = TEH_keys_exchange_sign (&dua,
|
ecr = TEH_keys_exchange_sign (&dua,
|
||||||
&epub,
|
&epub,
|
||||||
&esig);
|
&esig);
|
||||||
|
Loading…
Reference in New Issue
Block a user