From 2ac697ca09feb828aaf2598e4c590c55bd004182 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 8 Feb 2019 00:12:12 +0100 Subject: [PATCH] LibC: execl() forgot to add the null sentinel to argv. --- LibC/unistd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibC/unistd.cpp b/LibC/unistd.cpp index 6c7282e809..71a57a290e 100644 --- a/LibC/unistd.cpp +++ b/LibC/unistd.cpp @@ -45,7 +45,7 @@ int execl(const char* filename, const char* arg0, ...) args.append(arg); } va_end(ap); - + args.append(nullptr); return execve(filename, (char* const *)args.data(), nullptr); }