mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-15 07:41:45 +00:00
Including the final (char *)NULL is the responsibility of the caller
of execl().
This commit is contained in:
parent
a77b32aaf6
commit
c343a3a8ee
@ -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; \
|
||||
} )
|
||||
|
Loading…
Reference in New Issue
Block a user