X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fntfs-capture.c;fp=src%2Fntfs-capture.c;h=74ae7536bda91862a7bacc8c1259095861c30ddc;hb=32844c59e618cfaf1999e81e32b5e18fcb13a5b9;hp=dfc153f9ecb01be1d35890b4cc2cbbf5fab56136;hpb=abd1f36d19f9be9ca1efc66ae7a642dd227b1f3c;p=wimlib diff --git a/src/ntfs-capture.c b/src/ntfs-capture.c index dfc153f9..74ae7536 100644 --- a/src/ntfs-capture.c +++ b/src/ntfs-capture.c @@ -546,7 +546,8 @@ build_dentry_tree_ntfs_recursive(struct wim_dentry **root_p, } /* Create the new WIM dentry */ - ret = new_dentry_with_timeless_inode(path_basename(path), &root); + ret = new_dentry_with_timeless_inode(path_basename_with_len(path, path_len), + &root); if (ret) return ret;