aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unistd/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/exec.c b/src/unistd/exec.c
index 5e7aeb8..1408cbf 100644
--- a/src/unistd/exec.c
+++ b/src/unistd/exec.c
@@ -58,7 +58,7 @@ static void vexec(const char* file, va_list argv, int fetch_envp, int use_path)
argv_ = alloca(n * sizeof(char*));
for (i = 0; i < n; i++)
- argv_[i] = va_arg(args, char*);
+ argv_[i] = va_arg(argv, char*);
(void)(use_path ? execvpe : execve)(file, argv_, envp);
}