Fixed !macroundef off by one error
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6512 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0a8c72c950
commit
83cc78d77b
2 changed files with 3 additions and 3 deletions
|
@ -1212,7 +1212,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
}
|
||||
TCHAR *mbufb=(TCHAR*)m_macros.get();
|
||||
const unsigned int mcb=BUGBUG64TRUNCATE(unsigned int, (mend-mbeg)*sizeof(TCHAR)), mbufcb=m_macros.getlen();
|
||||
memmove(mbeg,mend+sizeof(TCHAR),mbufcb-(mcb+(mbeg-mbufb)));
|
||||
memmove(mbeg,mend+1,mbufcb-(mcb+(mbeg-mbufb)));
|
||||
m_macros.resize((int)(mbufcb-(mcb+sizeof(TCHAR))));
|
||||
SCRIPT_MSG(_T("!macroundef: %") NPRIs _T("\n"),mname);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue