1
Fork 0
This commit is contained in:
Dave Huseby 2016-01-26 17:37:18 -08:00
parent 50df6b9dc5
commit 0153e64d97
3 changed files with 37 additions and 18 deletions

View file

@ -224,7 +224,7 @@ impl DirEntry {
fn name_bytes(&self) -> &[u8] {
unsafe {
::slice::from_raw_parts(self.entry.d_name.as_ptr() as *const u8,
self.entry.d_namelen as usize)
self.entry.d_namlen as usize)
}
}
#[cfg(any(target_os = "android",