Fix a counting bug (spotted by HeisSpiter a.k.a. pschweitzer :) )
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 2 Dec 2012 15:36:18 +0000 (15:36 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 2 Dec 2012 15:36:18 +0000 (15:36 +0000)
svn path=/trunk/; revision=57788

reactos/ntoskrnl/kdbg/kdb.c

index 75fd5a5..4b614d3 100644 (file)
@@ -1705,7 +1705,7 @@ INIT_FUNCTION
 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, ' ')))
     {