X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fntfs-3g_capture.c;h=22b9e55422497ae85e5a45a375863d6b806482f0;hb=855b49ef85d274588a2848d9c69974f9b88d343a;hp=cd0758ac42302950a3159c563d3e6e4481f863ee;hpb=7251c7d0afac3b738dda1c4f45e6d3d3090f2622;p=wimlib diff --git a/src/ntfs-3g_capture.c b/src/ntfs-3g_capture.c index cd0758ac..22b9e554 100644 --- a/src/ntfs-3g_capture.c +++ b/src/ntfs-3g_capture.c @@ -393,7 +393,7 @@ set_dentry_dos_name(struct wim_dentry *dentry, const struct dos_name_map *map) if (dentry->is_win32_name) { node = lookup_dos_name(map, dentry->d_inode->i_ino); if (node) { - dentry->short_name = utf16le_dupz((const utf16lechar *)node->dos_name, + dentry->short_name = utf16le_dupz(node->dos_name, node->name_nbytes); if (!dentry->short_name) return WIMLIB_ERR_NOMEM;