aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/plugin_peerstore_flat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerstore/plugin_peerstore_flat.c')
-rw-r--r--src/peerstore/plugin_peerstore_flat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerstore/plugin_peerstore_flat.c b/src/peerstore/plugin_peerstore_flat.c
index 24011e014..f5943e509 100644
--- a/src/peerstore/plugin_peerstore_flat.c
+++ b/src/peerstore/plugin_peerstore_flat.c
@@ -294,10 +294,10 @@ peerstore_flat_store_record (void *cls, const char *sub_system,
294 entry->sub_system = GNUNET_strdup (sub_system); 294 entry->sub_system = GNUNET_strdup (sub_system);
295 entry->key = GNUNET_strdup (key); 295 entry->key = GNUNET_strdup (key);
296 entry->value = GNUNET_malloc (size); 296 entry->value = GNUNET_malloc (size);
297 memcpy (entry->value, value, size); 297 GNUNET_memcpy (entry->value, value, size);
298 entry->value_size = size; 298 entry->value_size = size;
299 entry->peer = GNUNET_new (struct GNUNET_PeerIdentity); 299 entry->peer = GNUNET_new (struct GNUNET_PeerIdentity);
300 memcpy (entry->peer, peer, sizeof (struct GNUNET_PeerIdentity)); 300 GNUNET_memcpy (entry->peer, peer, sizeof (struct GNUNET_PeerIdentity));
301 entry->expiry = GNUNET_new (struct GNUNET_TIME_Absolute); 301 entry->expiry = GNUNET_new (struct GNUNET_TIME_Absolute);
302 entry->expiry->abs_value_us = expiry.abs_value_us; 302 entry->expiry->abs_value_us = expiry.abs_value_us;
303 303