diff options
Diffstat (limited to 'src/gns/plugin_gnsrecord_gns.c')
-rw-r--r-- | src/gns/plugin_gnsrecord_gns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c index 9ac091069..756034d6e 100644 --- a/src/gns/plugin_gnsrecord_gns.c +++ b/src/gns/plugin_gnsrecord_gns.c | |||
@@ -174,7 +174,7 @@ gns_string_to_value (void *cls, | |||
174 | return GNUNET_SYSERR; | 174 | return GNUNET_SYSERR; |
175 | } | 175 | } |
176 | *data = GNUNET_new (struct GNUNET_CRYPTO_EcdsaPublicKey); | 176 | *data = GNUNET_new (struct GNUNET_CRYPTO_EcdsaPublicKey); |
177 | memcpy (*data, &pkey, sizeof (pkey)); | 177 | GNUNET_memcpy (*data, &pkey, sizeof (pkey)); |
178 | *data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey); | 178 | *data_size = sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey); |
179 | return GNUNET_OK; | 179 | return GNUNET_OK; |
180 | 180 | ||
@@ -227,7 +227,7 @@ gns_string_to_value (void *cls, | |||
227 | GNUNET_free (cpy); | 227 | GNUNET_free (cpy); |
228 | *data_size = off; | 228 | *data_size = off; |
229 | *data = GNUNET_malloc (off); | 229 | *data = GNUNET_malloc (off); |
230 | memcpy (*data, nsbuf, off); | 230 | GNUNET_memcpy (*data, nsbuf, off); |
231 | return GNUNET_OK; | 231 | return GNUNET_OK; |
232 | } | 232 | } |
233 | case GNUNET_GNSRECORD_TYPE_VPN: | 233 | case GNUNET_GNSRECORD_TYPE_VPN: |
@@ -297,7 +297,7 @@ gns_string_to_value (void *cls, | |||
297 | box->protocol = htons (protocol); | 297 | box->protocol = htons (protocol); |
298 | box->service = htons (service); | 298 | box->service = htons (service); |
299 | box->record_type = htonl (record_type); | 299 | box->record_type = htonl (record_type); |
300 | memcpy (&box[1], | 300 | GNUNET_memcpy (&box[1], |
301 | bval, | 301 | bval, |
302 | bval_size); | 302 | bval_size); |
303 | GNUNET_free (bval); | 303 | GNUNET_free (bval); |