From ebbfc6d335b3756be17518ee67ad7d3e01583f35 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 7 May 2004 11:16:18 +0000 Subject: [PATCH] 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 --- Source/build.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }