We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bdc59b commit 5cfadb3Copy full SHA for 5cfadb3
src/inputstream.rs
@@ -36,7 +36,7 @@ extern fn read<T: Read + Seek>(data: *mut c_void, size: c_longlong, user_data: *
36
let mut buf = vec!();
37
let status = chunk.read_to_end(&mut buf);
38
if status.is_ok() {
39
- unsafe { ptr::copy_nonoverlapping(buf.as_ptr(), data as *mut u8, size as usize) };
+ unsafe { ptr::copy_nonoverlapping(buf.as_ptr(), data as *mut u8, size as usize); }
40
return status.unwrap() as i64;
41
}
42
0 commit comments