chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ebe63f
)
tree-wide: use newa() rather than alloca() where we can
author
Lennart Poettering
<lennart@poettering.net>
Fri, 27 Apr 2018 12:28:35 +0000
(14:28 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
src/basic/process-util.c
patch
|
blob
|
history
diff --git
a/src/basic/process-util.c
b/src/basic/process-util.c
index 94d5866219e2ba7601037bd8843851224f1a6bba..27a593981168ef8e259f33de74132d7a181c33dc 100644
(file)
--- 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);