Fixes #31229
This commit is contained in:
parent
50df6b9dc5
commit
0153e64d97
3 changed files with 37 additions and 18 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue