david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Including the final (char *)NULL is the responsibility of the caller

of execl().
This commit is contained in:
Michael Brown 2006-12-08 09:15:12 +00:00
parent a77b32aaf6
commit c343a3a8ee
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ extern int execv ( const char *command, char * const argv[] );
* This is a front end to execv().
*/
#define execl( command, arg, ... ) ( { \
char * const argv[] = { (arg), ## __VA_ARGS__, NULL }; \
char * const argv[] = { (arg), ## __VA_ARGS__ }; \
int rc = execv ( (command), argv ); \
rc; \
} )