diff options
Diffstat (limited to 'ot_vector.c')
-rw-r--r-- | ot_vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_vector.c b/ot_vector.c index f7481f1..a69d9a5 100644 --- a/ot_vector.c +++ b/ot_vector.c | |||
@@ -244,7 +244,7 @@ void vector_redistribute_buckets( ot_peerlist * peer_list ) { | |||
244 | bucket_dest->space *= OT_VECTOR_GROW_RATIO; | 244 | bucket_dest->space *= OT_VECTOR_GROW_RATIO; |
245 | } | 245 | } |
246 | peers_new = (ot_peer*)bucket_dest->data; | 246 | peers_new = (ot_peer*)bucket_dest->data; |
247 | *(uint64_t*)(peers_new + bucket_dest->size++) = *(uint64_t*)(peers_old++); | 247 | memcpy(peers_new + bucket_dest->size++, peers_old++, sizeof(ot_peer)); |
248 | } | 248 | } |
249 | } | 249 | } |
250 | 250 | ||