]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fix -v option parsing in qcvm
authorWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 21:49:50 +0000 (22:49 +0100)
committerWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 21:49:50 +0000 (22:49 +0100)
exec.c

diff --git a/exec.c b/exec.c
index 9ba00200ffa78a341feb3dfadf450648cf9727a4..7931486e411ab65b382755020c70a0e88eff1f3a 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -912,6 +912,8 @@ int main(int argc, char **argv)
         }
         else if (!strcmp(argv[1], "-v")) {
             ++opts_v;
+            --argc;
+            ++argv;
         }
         else if (!strncmp(argv[1], "-vv", 3)) {
             const char *av = argv[1]+1;