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:
kichik 2004-05-07 11:16:18 +00:00
parent c5aef2646e
commit ebbfc6d335

View file

@ -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);
}