diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:48:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 16:48:10 +0000 |
commit | 0f3caa49abab25613b9adb60427929882a17eabc (patch) | |
tree | 26dcca19169fe2fde7b4bc3136ab81007f8f5be6 /src/datacache/plugin_datacache_heap.c | |
parent | c82072eaae70a10f46dfc448e9aefd80cde2ae45 (diff) |
-fix shifting issues
Diffstat (limited to 'src/datacache/plugin_datacache_heap.c')
-rw-r--r-- | src/datacache/plugin_datacache_heap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datacache/plugin_datacache_heap.c b/src/datacache/plugin_datacache_heap.c index a32835cf49..afc320b206 100644 --- a/src/datacache/plugin_datacache_heap.c +++ b/src/datacache/plugin_datacache_heap.c @@ -245,7 +245,8 @@ heap_plugin_put (void *cls, GNUNET_array_grow (val->path_info, val->path_info_len, path_info_len); - memcpy (val->path_info, path_info, + memcpy (val->path_info, + path_info, path_info_len * sizeof (struct GNUNET_PeerIdentity)); (void) GNUNET_CONTAINER_multihashmap_put (plugin->map, &val->key, |