diff options
Diffstat (limited to 'ext/fs/lib.rs')
-rw-r--r-- | ext/fs/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs index 3bad65330..9c889d9b2 100644 --- a/ext/fs/lib.rs +++ b/ext/fs/lib.rs @@ -1339,6 +1339,7 @@ fn do_stat(path: PathBuf, lstat: bool) -> Result<FsStat, AnyError> { } else { (path.canonicalize()?, FILE_FLAG_BACKUP_SEMANTICS) }; + // SAFETY: winapi calls unsafe { let mut path: Vec<_> = p.as_os_str().encode_wide().collect(); path.push(0); |