Browse Source

LibC: execl() forgot to add the null sentinel to argv.

Andreas Kling 6 years ago
parent
commit
2ac697ca09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      LibC/unistd.cpp

+ 1 - 1
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);
 }