firmware/rpc_proto: Fix typo breaking receiving of arrays

This was introduced in 8740ec3dd5.
This commit is contained in:
David Nadlinger 2022-11-14 22:49:45 +00:00 committed by Sebastien Bourdeauducq
parent d422de387e
commit 60a2ff3799
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ unsafe fn recv_value<R, E>(reader: &mut R, tag: Tag, data: &mut *mut (),
// Allocate backing storage for elements; deserialize them.
let elt_tag = it.clone().next().expect("truncated tag");
*buffer = alloc(elt_tag.size() * total_len)?;
recv_elements(reader, tag, total_len, *buffer, alloc)
recv_elements(reader, elt_tag, total_len, *buffer, alloc)
})
}
Tag::Range(it) => {