From: Eric Biggers Date: Sat, 18 May 2013 04:51:27 +0000 (-0500) Subject: win32_extract_try_rpfix(): Use correct number of stripped characters X-Git-Tag: v1.4.0~6 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=b98fdb87729cceed31dd077fc0aaeebab3ac109b win32_extract_try_rpfix(): Use correct number of stripped characters --- diff --git a/src/win32_apply.c b/src/win32_apply.c index 39090d69..120ec210 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -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 +