]> wimlib.net Git - wimlib/commitdiff
NTFS-3g capture: Fix setting DOS name
authorEric Biggers <ebiggers3@gmail.com>
Tue, 13 May 2014 23:27:37 +0000 (18:27 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 13 May 2014 23:27:37 +0000 (18:27 -0500)
src/ntfs-3g_capture.c

index 48bbc482410e73c0f8685f452dfcb7a1c8f309ab..ff341f09ddf02b2235ec55b3a242fc9ef313de39 100644 (file)
@@ -394,7 +394,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(node->dos_node,
+                       dentry->short_name = utf16le_dupz((const utf16lechar *)node->dos_name,
                                                          node->name_nbytes);
                        if (!dentry->short_name)
                                return WIMLIB_ERR_NOMEM;