Author: hbelusca
Date: Sun Dec 2 15:36:18 2012
New Revision: 57788
URL:
http://svn.reactos.org/svn/reactos?rev=57788&view=rev
Log:
Fix a counting bug (spotted by HeisSpiter a.k.a. pschweitzer :) )
Modified:
trunk/reactos/ntoskrnl/kdbg/kdb.c
Modified: trunk/reactos/ntoskrnl/kdbg/kdb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb.c?rev=57…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb.c [iso-8859-1] Sun Dec 2 15:36:18 2012
@@ -1705,7 +1705,7 @@
KdbpGetCommandLineSettings(
PCHAR p1)
{
-#define CONST_STR_LEN(x) (sizeof(x)/sizeof(x[0]))
+#define CONST_STR_LEN(x) (sizeof(x)/sizeof(x[0]) - 1)
while (p1 && (p1 = strchr(p1, ' ')))
{