[ares] fix atom initialization bug

This commit is contained in:
Philip Monk 2023-02-02 20:56:36 -07:00
parent 697180606b
commit 336214cd9b

View File

@ -208,7 +208,7 @@ impl IndirectAtom {
data: *const u64,
) -> Self {
let (mut indirect, buffer) = Self::new_raw_mut(allocator, size);
ptr::copy_nonoverlapping(data, buffer.add(2), size);
ptr::copy_nonoverlapping(data, buffer, size);
*(indirect.normalize())
}