diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-01-14 09:21:54 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-01-14 09:21:54 +0000 |
commit | 550adb770e70056b929f0b17cc6133c1b9ed17a1 (patch) | |
tree | e72908016efc9999be3be8ea414afebfe44b49f6 /usr.bin/c99 | |
parent | 8ef204853467d3eda8ad02633a433e05077e12df (diff) | |
download | FreeBSD-src-550adb770e70056b929f0b17cc6133c1b9ed17a1.zip FreeBSD-src-550adb770e70056b929f0b17cc6133c1b9ed17a1.tar.gz |
Fix off-by-one error.
Diffstat (limited to 'usr.bin/c99')
-rw-r--r-- | usr.bin/c99/c99.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/c99/c99.c b/usr.bin/c99/c99.c index db74cd7..17dc27e 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"); |