diff options
Diffstat (limited to 'src/namestore/plugin_namestore_postgres.c')
-rw-r--r-- | src/namestore/plugin_namestore_postgres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/plugin_namestore_postgres.c b/src/namestore/plugin_namestore_postgres.c index 9118ca5cf..8ea6b43ad 100644 --- a/src/namestore/plugin_namestore_postgres.c +++ b/src/namestore/plugin_namestore_postgres.c | |||
@@ -228,7 +228,7 @@ namestore_postgres_store_records (void *cls, | |||
228 | if (GNUNET_GNSRECORD_TYPE_PKEY == rd[i].record_type) | 228 | if (GNUNET_GNSRECORD_TYPE_PKEY == rd[i].record_type) |
229 | { | 229 | { |
230 | GNUNET_break (sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey) == rd[i].data_size); | 230 | GNUNET_break (sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey) == rd[i].data_size); |
231 | memcpy (&pkey, | 231 | GNUNET_memcpy (&pkey, |
232 | rd[i].data, | 232 | rd[i].data, |
233 | rd[i].data_size); | 233 | rd[i].data_size); |
234 | break; | 234 | break; |
@@ -363,7 +363,7 @@ get_record_and_call_iterator (struct Plugin *plugin, | |||
363 | struct GNUNET_GNSRECORD_Data rd[record_count]; | 363 | struct GNUNET_GNSRECORD_Data rd[record_count]; |
364 | char buf[label_len + 1]; | 364 | char buf[label_len + 1]; |
365 | 365 | ||
366 | memcpy (buf, label, label_len); | 366 | GNUNET_memcpy (buf, label, label_len); |
367 | buf[label_len] = '\0'; | 367 | buf[label_len] = '\0'; |
368 | if (GNUNET_OK != | 368 | if (GNUNET_OK != |
369 | GNUNET_GNSRECORD_records_deserialize (data_size, data, | 369 | GNUNET_GNSRECORD_records_deserialize (data_size, data, |