1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/trianglix
Ralph Holmes 5d774cce1d Fix execl(3) sentinel undefined behaviour.
execl(3) and its variants use a sentinel to terminate the variadic
argument list, in the form of a null pointer constant of type pointer to
char. POSIX mandates that NULL is a null pointer constant of type
pointer to void, which is not of an equivalent type to that required by
execl(3) and its variants, resulting in undefined behaviour.

This commit casts all such instances of NULL to pointer to char type.
For consistency, it also adds const-qualification to any such instances
which had already been casted, and were not const-qualified.
2016-09-30 23:36:49 +02:00
..
.gitignore Add the Trianglix Desktop Environment. 2014-12-28 21:46:16 +01:00
Makefile Fix trianglix for Sortix defaulting to a wrong prefix. 2015-01-23 14:52:51 +01:00
trianglix.cpp Fix execl(3) sentinel undefined behaviour. 2016-09-30 23:36:49 +02:00
vector.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00