summaryrefslogtreecommitdiff
path: root/libc/unistd/execl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/execl.c')
-rw-r--r--libc/unistd/execl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/execl.c b/libc/unistd/execl.c
index a05867ef8..9d49d5abd 100644
--- a/libc/unistd/execl.c
+++ b/libc/unistd/execl.c
@@ -26,7 +26,7 @@ int execl(__const char *path, __const char *arg, ...)
if (i <= 16)
argv = shortargv;
else {
- argv = (const char **) malloc(sizeof(char *) * i);
+ argv = (const char **) alloca(sizeof(char *) * i);
}
argv[0] = arg;