This commit is contained in:
sxyazi 2025-09-04 16:49:23 +08:00
parent 5efde5366a
commit 9e7e3da6e0
No known key found for this signature in database

View file

@ -158,8 +158,7 @@ fn final_path(path: &Path) -> io::Result<PathBuf> {
})
}
let mut buf = [0u16; 512];
match inner(&file, &mut buf)? {
match inner(&file, &mut [0u16; 512])? {
Either::Left(path) => Ok(path),
Either::Right(len) => {
let mut buf = vec![0u16; len as usize];