diff options
| -rw-r--r-- | src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs index 06156be..b6c4cf4 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -32,7 +32,7 @@ pub fn download(url: &str, max_kib: Option<usize>) -> Result<String, DownloadErr Err(e) => Err(e).context(ErrorKind::Read)?, }; - bytes.extend_from_slice(&buf); + bytes.extend_from_slice(&buf[..len]); written += len; // Check if the file is too large to download |
