From d280d2610e585b884b376705f40f721c76ca97af Mon Sep 17 00:00:00 2001 From: Greg King Date: Sun, 30 Aug 2015 07:55:07 -0400 Subject: [PATCH] Don't count the NULL (doh!). --- src/common/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/cmdline.c b/src/common/cmdline.c index ce2962780..0f6622934 100644 --- a/src/common/cmdline.c +++ b/src/common/cmdline.c @@ -210,11 +210,11 @@ void InitCmdLine (int* aArgCount, char*** aArgVec, const char* aProgName) } /* Store the new argument list in a safe place... */ - ArgCount = L.Count; + ArgCount = L.Count - 1; ArgVec = L.Vec; /* ...and pass back the changed data also */ - *aArgCount = L.Count; + *aArgCount = L.Count - 1; *aArgVec = L.Vec; } -- 2.39.5