Another buffer overflow bug fixed
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@952 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9d015c33ce
commit
6f27bee7ad
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ void CompileNSISScript() {
|
|||
}
|
||||
if (!g_appended) {
|
||||
if (s) GlobalFree(s);
|
||||
s = (char *)GlobalAlloc(GPTR, lstrlen(g_script)+lstrlen(EXENAME)+1);
|
||||
s = (char *)GlobalAlloc(GPTR, lstrlen(g_script)+lstrlen(EXENAME)+2);
|
||||
wsprintf(s,"%s %s",EXENAME,g_script);
|
||||
g_script = s;
|
||||
g_appended = TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue