aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/c99
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/c99')
-rw-r--r--usr.bin/c99/c99.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/c99/c99.c b/usr.bin/c99/c99.c
index db74cd73f09f..17dc27e0cd67 100644
--- a/usr.bin/c99/c99.c
+++ b/usr.bin/c99/c99.c
@@ -94,7 +94,7 @@ main(int argc, char *argv[])
void
addarg(const char *item)
{
- if (nargs + 1 > cargs) {
+ if (nargs + 1 >= cargs) {
cargs += 16;
if ((args = realloc(args, sizeof(*args) * cargs)) == NULL)
err(1, "malloc");