Author: ekohl
Date: Wed Jun 7 13:37:43 2017
New Revision: 74938
URL:
http://svn.reactos.org/svn/reactos?rev=74938&view=rev
Log:
[INTL]
Prevent wcsncopy overflows in GetCurrencySettings().
Patch by Victor Martinez Calvo.
CORE-13379
Modified:
trunk/reactos/dll/cpl/intl/currency.c
Modified: trunk/reactos/dll/cpl/intl/currency.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/currency.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/intl/currency.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/intl/currency.c [iso-8859-1] Wed Jun 7 13:37:43 2017
@@ -279,7 +279,7 @@
GetSelectedComboBoxText(hwndDlg,
IDC_CURRENCYSYMBOL,
szCurrSymbol,
- MAX_SAMPLES_STR_SIZE);
+ MAX_CURRSYMBOL);
if (szCurrSymbol[0] == L'\0')
{
@@ -302,7 +302,7 @@
GetSelectedComboBoxText(hwndDlg,
IDC_CURRENCYDECSEP,
szCurrDecimalSep,
- MAX_SAMPLES_STR_SIZE);
+ MAX_CURRDECIMALSEP);
if (szCurrDecimalSep[0] == L'\0')
{
@@ -320,7 +320,7 @@
GetSelectedComboBoxText(hwndDlg,
IDC_CURRENCYGRPSEP,
szCurrThousandSep,
- MAX_SAMPLES_STR_SIZE);
+ MAX_CURRTHOUSANDSEP);
if (szCurrThousandSep[0] == L'\0')
{