increased buffer size for holding value field

This commit is contained in:
racham%netscape.com 1999-02-26 18:36:04 +00:00
Родитель adcdf55dea
Коммит e4b15afcc8
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

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