From 1a03204ad08d47f7a05721926d7d02930c6ea7e2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 11 Oct 2015 02:21:48 +0200 Subject: fix m error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/unistd/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2