From c77b0fa7916f79c099ee4a6a80a093334e9090ac Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 27 Jul 2022 13:59:52 +0200 Subject: user/libc: execve() supports passing argv now --- src/user/lib/stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/lib/stdlib.c') diff --git a/src/user/lib/stdlib.c b/src/user/lib/stdlib.c index 179bd8f..0795d3d 100644 --- a/src/user/lib/stdlib.c +++ b/src/user/lib/stdlib.c @@ -25,7 +25,7 @@ int execv(const char *path, char *const argv[]) { if (!file) return -1; - elf_execf(file); + elf_execf(file, (void*)argv, NULL); fclose(file); errno = EINVAL; return -1; -- cgit v1.2.3