diff --git a/artiq/firmware/runtime/mgmt.rs b/artiq/firmware/runtime/mgmt.rs index fd39be059..5527edb3b 100644 --- a/artiq/firmware/runtime/mgmt.rs +++ b/artiq/firmware/runtime/mgmt.rs @@ -280,7 +280,7 @@ mod remote_coremgmt { buffer.extend(&data[..length as usize]); if last { - stream.write_bytes(&buffer[..length as usize])?; + stream.write_bytes(&buffer)?; buffer.clear(); } }