]> git.sur5r.net Git - cc65/blobdiff - src/common/cmdline.c
Don't count the NULL (doh!).
[cc65] / src / common / cmdline.c
index ce2962780c7e7fcae0b63e4f61823a7d2887825b..0f6622934beabc03d002bad0ce35cdac7cc4663a 100644 (file)
@@ -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;
 }