lib: supposed to realign the node_buf not the data_buf

This commit is contained in:
Matt Bilker
2018-07-08 18:41:05 -04:00
parent 7fab90beb2
commit 0596e03077

View File

@@ -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();