From 354ec19e3b427c8a02d552b237620e9b4b24fa21 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Sun, 19 Mar 2017 18:34:31 +0100 Subject: [PATCH] Always send full chunks (#4960) --- hw/src/ledger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/src/ledger.rs b/hw/src/ledger.rs index fca1d0c3a..bc449e251 100644 --- a/hw/src/ledger.rs +++ b/hw/src/ledger.rs @@ -271,7 +271,7 @@ impl Manager { chunk_size += size; } trace!("writing {:?}", &hid_chunk[..]); - let n = handle.write(&hid_chunk[0..chunk_size])?; + let n = handle.write(&hid_chunk[..])?; if n < chunk_size { return Err(Error::Protocol("Write data size mismatch")); }