diff --git a/libntfs-3g/reparse.c b/libntfs-3g/reparse.c index 7b96902c..ee14efbe 100644 --- a/libntfs-3g/reparse.c +++ b/libntfs-3g/reparse.c @@ -195,7 +195,7 @@ static u64 ntfs_fix_file_name(ntfs_inode *dir_ni, ntfschar *uname, uname[i] = found->file_name[i]; } else { for (i=0; ifile_name_length; i++) - uname[i] = vol->locase[found->file_name[i]]; + uname[i] = vol->locase[le16_to_cpu(found->file_name[i])]; } } }