Module Name:    src
Committed By:   dholland
Date:           Sat Mar 12 22:28:04 UTC 2016

Modified Files:
        src/usr.bin/apply: apply.c

Log Message:
Use execl() correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/apply/apply.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/apply/apply.c
diff -u src/usr.bin/apply/apply.c:1.18 src/usr.bin/apply/apply.c:1.19
--- src/usr.bin/apply/apply.c:1.18	Sat Mar 12 21:20:17 2016
+++ src/usr.bin/apply/apply.c	Sat Mar 12 22:28:04 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: apply.c,v 1.18 2016/03/12 21:20:17 dholland Exp $	*/
+/*	$NetBSD: apply.c,v 1.19 2016/03/12 22:28:04 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)apply.c	8.4 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: apply.c,v 1.18 2016/03/12 21:20:17 dholland Exp $");
+__RCSID("$NetBSD: apply.c,v 1.19 2016/03/12 22:28:04 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -234,7 +234,7 @@ shell_system(const char *command)
 	case 0:
 		/* child */
 		(void)sigsetmask(omask);
-		(void)execl(shell, name, "-c", command, NULL);
+		(void)execl(shell, name, "-c", command, (char *)NULL);
 		warn("%s", shell);
 		_exit(1);
 		/*NOTREACHED*/

Reply via email to