Author: hbelusca
Date: Thu Mar 3 23:00:55 2016
New Revision: 70899
URL:
http://svn.reactos.org/svn/reactos?rev=70899&view=rev
Log:
[HELP]: Use ARRAYSIZE(buffer) instead of hardcoding its size.
Modified:
trunk/reactos/base/applications/cmdutils/help/help.c
Modified: trunk/reactos/base/applications/cmdutils/help/help.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/help/help.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/help/help.c [iso-8859-1] Thu Mar 3
23:00:55 2016
@@ -30,7 +30,7 @@
va_list args;
va_start(args, resID);
- LoadStringW(GetModuleHandleW(NULL), resID, bufSrc, RC_STRING_MAX_SIZE);
+ LoadStringW(GetModuleHandleW(NULL), resID, bufSrc, ARRAYSIZE(bufSrc));
vswprintf(bufFormatted, bufSrc, args);
CharToOemW(bufFormatted, bufFormattedOem);
fputs(bufFormattedOem, stdout);