]> wimlib.net Git - wimlib/blobdiff - src/win32_apply.c
win32_extract_try_rpfix(): Use correct number of stripped characters
[wimlib] / src / win32_apply.c
index 39090d6910e0820501ade2ade8f89daf68f2cfd0..120ec210a6e4c94efdc4d0f2d55c02848c93e247 100644 (file)
@@ -97,7 +97,7 @@ win32_extract_try_rpfix(u8 *rpbuf,
        stripped_nchars = ret;
        target = rpdata.substitute_name;
        target_nchars = rpdata.substitute_name_nbytes / sizeof(utf16lechar);
-       stripped_target = target + 6;
+       stripped_target = target + stripped_nchars;
        stripped_target_nchars = target_nchars - stripped_nchars;
 
        new_target = alloca((6 + extract_root_realpath_nchars +