From a1f8dc24adebeb45e540c0c01b76ed4aa11c2622 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 27 Apr 2018 14:28:35 +0200 Subject: [PATCH] tree-wide: use newa() rather than alloca() where we can --- src/basic/process-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/process-util.c b/src/basic/process-util.c index 94d586621..27a593981 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -1445,7 +1445,7 @@ int fork_agent(const char *name, const int except[], size_t n_except, pid_t *ret va_end(ap); /* Allocate strv */ - l = alloca(sizeof(char *) * (n + 1)); + l = newa(char*, n + 1); /* Fill in arguments */ va_start(ap, path); -- 2.30.2