From 0596e030776fef11dfbcd4dbf9b6f791b6e572c1 Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Sun, 8 Jul 2018 18:41:05 -0400 Subject: [PATCH] lib: supposed to realign the node_buf not the data_buf --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1023678..a19b6ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -352,7 +352,7 @@ impl KbinXml { self.write_node(&mut node_buf, &mut data_buf, input)?; node_buf.write_u8(StandardType::FileEnd.id | ARRAY_MASK).context(KbinErrorKind::DataWrite("file end"))?; - data_buf.realign_writes(None)?; + node_buf.realign_writes(None)?; let mut output = header.into_inner();