Fix a counting bug (spotted by HeisSpiter a.k.a. pschweitzer :) )

svn path=/trunk/; revision=57788
This commit is contained in:
Hermès Bélusca-Maïto 2012-12-02 15:36:18 +00:00
parent 35dedc452d
commit 483d67dec7

View file

@ -1705,7 +1705,7 @@ INIT_FUNCTION
KdbpGetCommandLineSettings( KdbpGetCommandLineSettings(
PCHAR p1) 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, ' '))) while (p1 && (p1 = strchr(p1, ' ')))
{ {