diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-13 19:55:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-13 19:55:46 +0200 |
commit | fa2978883e1585b1eeff3a22b7a9b4f174a45ca3 (patch) | |
tree | 52800dd5062534729be80227608def6f6c0c45ac /src/credential/plugin_gnsrecord_credential.c | |
parent | 2bb2faa207e4015609100a1aca38af344c65596f (diff) |
get rid of plain memcpy calls
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r-- | src/credential/plugin_gnsrecord_credential.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index ffb2857dc..cba362a50 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c @@ -62,9 +62,9 @@ credential_value_to_string (void *cls, int i; if (data_size < sizeof (struct GNUNET_CREDENTIAL_DelegationRecord)) return NULL; /* malformed */ - memcpy (&sets, - data, - sizeof (sets)); + GNUNET_memcpy (&sets, + data, + sizeof (sets)); cdata = data; struct GNUNET_CREDENTIAL_DelegationSet set[ntohl(sets.set_count)]; if (GNUNET_OK != GNUNET_CREDENTIAL_delegation_set_deserialize (GNUNET_ntohll (sets.data_size), @@ -224,7 +224,7 @@ credential_string_to_value (void *cls, } tmp_data_size = GNUNET_CREDENTIAL_delegation_set_get_size (entries, set); - + if (-1 == tmp_data_size) { GNUNET_free (tmp_str); @@ -248,7 +248,7 @@ credential_string_to_value (void *cls, return GNUNET_OK; } case GNUNET_GNSRECORD_TYPE_CREDENTIAL: - { + { struct GNUNET_CREDENTIAL_Credential *cred; cred = GNUNET_CREDENTIAL_credential_from_string (s); |