Author: gschneider
Date: Thu Aug 6 14:45:11 2009
New Revision: 42426
URL:
http://svn.reactos.org/svn/reactos?rev=42426&view=rev
Log:
-Increase array size to allow proper string termination (MSVC warning #C4045)
-The code correctly copies only the first TCHAR4 value being the string itself
Modified:
trunk/reactos/lib/sdk/crt/time/asctime.c
Modified: trunk/reactos/lib/sdk/crt/time/asctime.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/time/asctime.c…
==============================================================================
--- trunk/reactos/lib/sdk/crt/time/asctime.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/time/asctime.c [iso-8859-1] Thu Aug 6 14:45:11 2009
@@ -14,13 +14,13 @@
#define MONSPERYEAR 12
#define HUNDREDYEAROFFSET 19
-static const _TCHAR wday_name[DAYSPERWEEK][4] =
+static const _TCHAR wday_name[DAYSPERWEEK][5] =
{
_T("Sun "), _T("Mon "), _T("Tue "), _T("Wed
"),
_T("Thu "), _T("Fri "), _T("Sat ")
};
-static const _TCHAR mon_name[MONSPERYEAR][4] =
+static const _TCHAR mon_name[MONSPERYEAR][5] =
{
_T("Jan "), _T("Feb "), _T("Mar "), _T("Apr
"), _T("May "), _T("Jun "),
_T("Jul "), _T("Aug "), _T("Sep "), _T("Oct
"), _T("Nov "), _T("Dec ")