diff options
Diffstat (limited to 'src/datacache/plugin_datacache_heap.c')
-rw-r--r-- | src/datacache/plugin_datacache_heap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datacache/plugin_datacache_heap.c b/src/datacache/plugin_datacache_heap.c index afc320b20..185d54f2f 100644 --- a/src/datacache/plugin_datacache_heap.c +++ b/src/datacache/plugin_datacache_heap.c | |||
@@ -177,7 +177,7 @@ put_cb (void *cls, | |||
177 | GNUNET_array_grow (val->path_info, | 177 | GNUNET_array_grow (val->path_info, |
178 | val->path_info_len, | 178 | val->path_info_len, |
179 | put_ctx->path_info_len); | 179 | put_ctx->path_info_len); |
180 | memcpy (val->path_info, | 180 | GNUNET_memcpy (val->path_info, |
181 | put_ctx->path_info, | 181 | put_ctx->path_info, |
182 | put_ctx->path_info_len * sizeof (struct GNUNET_PeerIdentity)); | 182 | put_ctx->path_info_len * sizeof (struct GNUNET_PeerIdentity)); |
183 | GNUNET_CONTAINER_heap_update_cost (put_ctx->heap, | 183 | GNUNET_CONTAINER_heap_update_cost (put_ctx->heap, |
@@ -237,7 +237,7 @@ heap_plugin_put (void *cls, | |||
237 | if (GNUNET_YES == put_ctx.found) | 237 | if (GNUNET_YES == put_ctx.found) |
238 | return 0; | 238 | return 0; |
239 | val = GNUNET_malloc (sizeof (struct Value) + size); | 239 | val = GNUNET_malloc (sizeof (struct Value) + size); |
240 | memcpy (&val[1], data, size); | 240 | GNUNET_memcpy (&val[1], data, size); |
241 | val->key = *key; | 241 | val->key = *key; |
242 | val->type = type; | 242 | val->type = type; |
243 | val->discard_time = discard_time; | 243 | val->discard_time = discard_time; |
@@ -245,7 +245,7 @@ heap_plugin_put (void *cls, | |||
245 | GNUNET_array_grow (val->path_info, | 245 | GNUNET_array_grow (val->path_info, |
246 | val->path_info_len, | 246 | val->path_info_len, |
247 | path_info_len); | 247 | path_info_len); |
248 | memcpy (val->path_info, | 248 | GNUNET_memcpy (val->path_info, |
249 | path_info, | 249 | path_info, |
250 | path_info_len * sizeof (struct GNUNET_PeerIdentity)); | 250 | path_info_len * sizeof (struct GNUNET_PeerIdentity)); |
251 | (void) GNUNET_CONTAINER_multihashmap_put (plugin->map, | 251 | (void) GNUNET_CONTAINER_multihashmap_put (plugin->map, |