From: Greg King Date: Sun, 30 Aug 2015 11:55:07 +0000 (-0400) Subject: Don't count the NULL (doh!). X-Git-Tag: V2.16~236^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F202%2Fhead;p=cc65 Don't count the NULL (doh!). --- 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; }