Including the final (char *)NULL is the responsibility of the caller
authorMichael Brown <mcb30@etherboot.org>
Fri, 8 Dec 2006 09:15:12 +0000 (09:15 +0000)
committerMichael Brown <mcb30@etherboot.org>
Fri, 8 Dec 2006 09:15:12 +0000 (09:15 +0000)
of execl().

src/include/unistd.h

index 9dd51dc..f3412d4 100644 (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;                                                     \
        } )