LicenseForceSelection strings now default to English too if string is missing from the NLF

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2690 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-07-04 12:48:40 +00:00
parent cf0a0762a5
commit e67f48952f

View file

@ -786,8 +786,8 @@ NLF::NLF(char *filename) {
// Read strings
for (int i = 0; i < NLF_STRINGS; i++) {
if (nlf_version < 3 && (i == NLF_BTN_LICENSE_AGREE || i == NLF_BTN_LICENSE_DISAGREE)) {
m_szStrings[i] = new char[1];
m_szStrings[i][0] = 0;
m_szStrings[i] = new char[strlen(english_strings[i]) + 1];
strcpy(m_szStrings[i], english_strings[i]);
continue;
}