1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

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

This commit is contained in:
Andreas Kling 2019-02-08 00:12:12 +01:00
parent f4bce03716
commit 2ac697ca09

View file

@ -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);
}