-Increase array size to allow proper string termination (MSVC warning #C4045)

-The code correctly copies only the first TCHAR4 value being the string itself

svn path=/trunk/; revision=42426
This commit is contained in:
Gregor Schneider 2009-08-06 12:45:11 +00:00
parent 740e3ee947
commit 44007e0af4

View file

@ -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 ")