summaryrefslogtreecommitdiffstats
path: root/usr.bin/c99
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-01-14 09:21:54 +0000
committerstefanf <stefanf@FreeBSD.org>2005-01-14 09:21:54 +0000
commit550adb770e70056b929f0b17cc6133c1b9ed17a1 (patch)
treee72908016efc9999be3be8ea414afebfe44b49f6 /usr.bin/c99
parent8ef204853467d3eda8ad02633a433e05077e12df (diff)
downloadFreeBSD-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.c2
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");
OpenPOWER on IntegriCloud