From b2dad77f691e0776f50de3bbcf673d2f76d321e9 Mon Sep 17 00:00:00 2001 From: eccles Date: Mon, 30 Sep 2002 21:42:58 +0000 Subject: [PATCH] CreateShortcut comment memory corruption git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1238 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index 0576dd54..69f8ed1d 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -120,7 +120,7 @@ int NSISCALL ExecuteCodeSegment(int pos, HWND hwndProgress) return 0; } -static char bufs[4][NSIS_MAX_STRLEN]; +static char bufs[5][NSIS_MAX_STRLEN]; static int *parms; static int NSISCALL process_string_fromparm_toint(int id_) @@ -144,6 +144,7 @@ static int NSISCALL ExecuteEntry(entry *entry_) char *buf1 = bufs[1]; char *buf2 = bufs[2]; char *buf3 = bufs[3]; + char *buf4 = bufs[4]; // changed by Amir Szekely 28 August 2002 // shaves off 0.5KB @@ -385,7 +386,7 @@ static int NSISCALL ExecuteEntry(entry *entry_) HANDLE hOut; int ret; char *buf3=process_string_fromparm_tobuf(0x31); - #define overwriteflag parm0 + #define overwriteflag parm0 log_printf3("File: overwriteflag=%d, name=\"%s\"",overwriteflag,buf3); if (validpathspec(buf3))