g_tmp should be at least twice NSIS_MAX_STRLEN, no matter what NSIS_MAX_STRLEN is

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4497 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-01-24 17:31:24 +00:00
parent 9f93fcfa18
commit 80cca71694

View file

@ -51,7 +51,11 @@ int g_quit_flag; // set when Quit has been called (meaning bail out ASAP)
int progress_bar_pos, progress_bar_len;
#if NSIS_MAX_STRLEN < 1024
static char g_tmp[4096];
#else
static char g_tmp[NSIS_MAX_STRLEN * 4];
#endif
static int m_page=-1,m_retcode,m_delta;
static page *g_this_page;