From 44007e0af4c6ffd21eda2e265b4a9207b69ae2bd Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Thu, 6 Aug 2009 12:45:11 +0000 Subject: [PATCH] -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 --- reactos/lib/sdk/crt/time/asctime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/sdk/crt/time/asctime.c b/reactos/lib/sdk/crt/time/asctime.c index f738c238fe2..84e059186d2 100644 --- a/reactos/lib/sdk/crt/time/asctime.c +++ b/reactos/lib/sdk/crt/time/asctime.c @@ -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 ")