Author: ekohl
Date: Wed Jun 7 13:48:49 2017
New Revision: 74940
URL:
http://svn.reactos.org/svn/reactos?rev=74940&view=rev
Log:
[INTL]
Fix GetDateSetting() overruns.
Patch by Victor Martinez Calvo.
CORE-13387
Modified:
trunk/reactos/dll/cpl/intl/date.c
Modified: trunk/reactos/dll/cpl/intl/date.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/date.c?rev=74…
==============================================================================
--- trunk/reactos/dll/cpl/intl/date.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/intl/date.c [iso-8859-1] Wed Jun 7 13:48:49 2017
@@ -520,9 +520,9 @@
HWND hwndDlg,
PGLOBALDATA pGlobalData)
{
- WCHAR szLongDateFormat[MAX_SAMPLES_STR_SIZE];
- WCHAR szShortDateFormat[MAX_SAMPLES_STR_SIZE];
- WCHAR szDateSeparator[MAX_SAMPLES_STR_SIZE];
+ WCHAR szLongDateFormat[MAX_LONGDATEFORMAT];
+ WCHAR szShortDateFormat[MAX_SHORTDATEFORMAT];
+ WCHAR szDateSeparator[MAX_DATESEPARATOR];
if (!SetLongDateFormat(hwndDlg, szLongDateFormat) ||
!SetShortDateFormat(hwndDlg, szShortDateFormat) ||