mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
increased buffer size for holding value field
This commit is contained in:
parent
7396376f72
commit
4b6b4e0e25
@ -1161,7 +1161,8 @@ WIDGET* CWizardMachineApp::findWidget(char *theName)
|
||||
void CWizardMachineApp::BuildWidget(WIDGET* aWidget, CString iniSection, CString iniFile, int pageBaseIndex, BOOL readValue)
|
||||
{
|
||||
static int idCounter = 0;
|
||||
char buffer[MAX_SIZE];
|
||||
char buffer[MAX_SIZE] = {'\0'};
|
||||
char largeBuffer[EXTD_MAX_SIZE] = {'\0'};
|
||||
|
||||
idCounter++;
|
||||
|
||||
@ -1176,8 +1177,8 @@ void CWizardMachineApp::BuildWidget(WIDGET* aWidget, CString iniSection, CString
|
||||
|
||||
if (readValue)
|
||||
{
|
||||
GetPrivateProfileString(iniSection, "Value", "", buffer, MAX_SIZE, iniFile);
|
||||
aWidget->value = buffer;
|
||||
GetPrivateProfileString(iniSection, "Value", "", largeBuffer, EXTD_MAX_SIZE, iniFile);
|
||||
aWidget->value = largeBuffer;
|
||||
aWidget->value.TrimRight();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user