summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaslo Hunhold <dev@frign.de>2017-08-04 16:15:52 +0200
committerLaslo Hunhold <dev@frign.de>2017-08-04 16:15:52 +0200
commit4e3c389ffa26127c756139c77d8ab91d1ee57156 (patch)
tree8f572d36cef82ae5951af32aaaa75c5a90282c79
parent959b70ab5a7f7801f7047b9d513671cd95500488 (diff)
arg.h: Fortify ARGC()
You never know...
-rw-r--r--arg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arg.h b/arg.h
index 042f5c1..8875490 100644
--- a/arg.h
+++ b/arg.h
@@ -41,7 +41,7 @@ extern char *argv0;
} \
} \
}
-#define ARGC() (*argv)[_i]
+#define ARGC() ((*argv)[_i])
#define ARGF_(x) (((*argv)[_i + 1]) ? (_argused = 1, &((*argv)[_i + 1])) : \
(*(argv + 1)) ? (_argused = 1, *(argv + 1)) : (x) \
)