Fixed problems with wsprintf limit of 1024 chars
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2057 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
86a6a17609
commit
f0173e1d8e
2 changed files with 3 additions and 1 deletions
|
@ -582,7 +582,9 @@ bool ReadSettings(void) {
|
|||
if (nResult) {
|
||||
// add an extra | character to the end to simplify the loop where we add the items.
|
||||
pFields[nIdx].pszListItems = (char*)MALLOC(nResult + 2);
|
||||
wsprintf(pFields[nIdx].pszListItems, "%s|", szResult);
|
||||
strcpy(pFields[nIdx].pszListItems, szResult);
|
||||
pFields[nIdx].pszListItems[nResult] = '|';
|
||||
pFields[nIdx].pszListItems[nResult + 1] = '0';
|
||||
}
|
||||
}
|
||||
pFields[nIdx].nMaxLength = GetPrivateProfileInt(szField, "MaxLen", 0, pszFilename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue