From af196fc600a41d3cc845c076f42cbb3d1e66cd47 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 18 Jul 2003 16:01:49 +0000 Subject: [PATCH] User vars inside strings should work now git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2743 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/build.cpp b/Source/build.cpp index 36fff032..d24d5537 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -539,7 +539,10 @@ int CEXEBuild::preprocess_string(char *out, const char *in) while ( pUserVarName > p ) { + char b = ((char*)p)[pUserVarName-p]; + ((char*)p)[pUserVarName-p] = 0; int idxUserVar = m_UserVarNames.get((char*)p, pUserVarName-p); + ((char*)p)[pUserVarName-p] = b; if ( idxUserVar >= 0 ) { // Well, using variables inside string formating doens't mean