mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:45:46 +00:00
-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:
parent
740e3ee947
commit
44007e0af4
1 changed files with 2 additions and 2 deletions
|
@ -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 ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue