increased buffer size for holding value field

This commit is contained in:
racham%netscape.com 1999-02-26 18:36:04 +00:00
parent 7396376f72
commit 4b6b4e0e25

View File

@ -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();
}