From c343a3a8ee5168f6b15a6143b79c34bb17deff9a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 8 Dec 2006 09:15:12 +0000 Subject: [PATCH] Including the final (char *)NULL is the responsibility of the caller of execl(). --- src/include/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/unistd.h b/src/include/unistd.h index 9dd51dcd..f3412d40 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -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; \ } )