From b98fdb87729cceed31dd077fc0aaeebab3ac109b Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 17 May 2013 23:51:27 -0500 Subject: [PATCH 1/1] win32_extract_try_rpfix(): Use correct number of stripped characters --- src/win32_apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + -- 2.43.0