diff --git a/Source/build.cpp b/Source/build.cpp index a24a5d2b..309d0dc0 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -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); }