From ef0733b3cf58d3ea12c6e60ef44adb901b1c07ff Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Sun, 18 Dec 2016 03:22:42 -0500 Subject: [PATCH] The last change was off by one. --- src/endian.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endian.rs b/src/endian.rs index 187638a..553b952 100644 --- a/src/endian.rs +++ b/src/endian.rs @@ -227,7 +227,7 @@ impl Converter for BigEndian // Strings start with the size of bytes to read as // a u64. So read that in and then we know how many // bytes make up the string. - byte_count = BigEndian::bytes_to_u64(&buffer[0..U64_BYTES]); + byte_count = BigEndian::bytes_to_u64(&buffer[0..U64_BYTES-1]); if byte_count > 0 {