summaryrefslogtreecommitdiff
path: root/libc/unistd/execlp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/execlp.c')
-rw-r--r--libc/unistd/execlp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/execlp.c b/libc/unistd/execlp.c
index fef10d376..1e2f6558d 100644
--- a/libc/unistd/execlp.c
+++ b/libc/unistd/execlp.c
@@ -28,7 +28,7 @@ int execlp(__const char *file, __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;