use NSIS_MAX_STRLEN, not an arbitrary number
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3539 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c5aef2646e
commit
ebbfc6d335
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ int CEXEBuild::add_string(const char *string, int process/*=1*/, WORD codepage/*
|
|||
|
||||
if (!process) return cur_strlist->add(string,2);
|
||||
|
||||
char buf[4096];
|
||||
char buf[NSIS_MAX_STRLEN*4];
|
||||
preprocess_string(buf,string,codepage);
|
||||
return cur_strlist->add(buf,2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue