Author: cwittich
Date: Mon Oct 20 08:47:57 2014
New Revision: 64841
URL:
http://svn.reactos.org/svn/reactos?rev=64841&view=rev
Log:
[cmd]
GetDateFormat expects size in characters
Modified:
trunk/reactos/base/shell/cmd/locale.c
Modified: trunk/reactos/base/shell/cmd/locale.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/locale.c?re…
==============================================================================
--- trunk/reactos/base/shell/cmd/locale.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/locale.c [iso-8859-1] Mon Oct 20 08:47:57 2014
@@ -62,7 +62,7 @@
INT len;
GetLocalTime(&t);
- len = GetDateFormat(LOCALE_USER_DEFAULT, 0, &t, _T("ddd"), szDate,
sizeof szDate);
+ len = GetDateFormat(LOCALE_USER_DEFAULT, 0, &t, _T("ddd"), szDate,
sizeof(szDate) / sizeof(szDate[0]));
szDate[len - 1] = _T(' ');
FormatDate(&szDate[len], &t, TRUE);
return szDate;