From b3b8277a07b750d36ec494623458960bbf09d2ed Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 7 Jun 2017 13:37:43 +0000 Subject: [PATCH] [INTL] Prevent wcsncopy overflows in GetCurrencySettings(). Patch by Victor Martinez Calvo. CORE-13379 svn path=/trunk/; revision=74938 --- reactos/dll/cpl/intl/currency.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/cpl/intl/currency.c b/reactos/dll/cpl/intl/currency.c index 98a5a873fcd..2dfcdb372e3 100644 --- a/reactos/dll/cpl/intl/currency.c +++ b/reactos/dll/cpl/intl/currency.c @@ -279,7 +279,7 @@ GetCurrencySetting( GetSelectedComboBoxText(hwndDlg, IDC_CURRENCYSYMBOL, szCurrSymbol, - MAX_SAMPLES_STR_SIZE); + MAX_CURRSYMBOL); if (szCurrSymbol[0] == L'\0') { @@ -302,7 +302,7 @@ GetCurrencySetting( GetSelectedComboBoxText(hwndDlg, IDC_CURRENCYDECSEP, szCurrDecimalSep, - MAX_SAMPLES_STR_SIZE); + MAX_CURRDECIMALSEP); if (szCurrDecimalSep[0] == L'\0') { @@ -320,7 +320,7 @@ GetCurrencySetting( GetSelectedComboBoxText(hwndDlg, IDC_CURRENCYGRPSEP, szCurrThousandSep, - MAX_SAMPLES_STR_SIZE); + MAX_CURRTHOUSANDSEP); if (szCurrThousandSep[0] == L'\0') {