From: Michael Tremer Date: Sun, 28 Sep 2025 09:21:40 +0000 (+0000) Subject: args: Make space in the array for the NULL termination X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75fcade027f4f382a176d2c0f777515c7ce6e8ad;p=telemetry.git args: Make space in the array for the NULL termination Signed-off-by: Michael Tremer --- diff --git a/src/daemon/args.c b/src/daemon/args.c index b396f4b..7abe62c 100644 --- a/src/daemon/args.c +++ b/src/daemon/args.c @@ -102,7 +102,7 @@ int collecty_args_push(collecty_args* self, const char* format, ...) { goto ERROR; // Grow argv - argv = reallocarray(self->argv, self->argc + 1, sizeof(*self->argv)); + argv = reallocarray(self->argv, self->argc + 2, sizeof(*self->argv)); if (!argv) goto ERROR;