From 336214cd9bbadd892b87a8cad00b34183150a367 Mon Sep 17 00:00:00 2001 From: Philip Monk Date: Thu, 2 Feb 2023 20:56:36 -0700 Subject: [PATCH] [ares] fix atom initialization bug --- rust/ares/src/noun.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/ares/src/noun.rs b/rust/ares/src/noun.rs index 6ea988e..923487e 100644 --- a/rust/ares/src/noun.rs +++ b/rust/ares/src/noun.rs @@ -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()) }