2004-01-20 08:50:53 -05:00
|
|
|
$OpenBSD: patch-programs_demos_wrap_c,v 1.2 2004/01/20 13:50:53 todd Exp $
|
|
|
|
--- programs/demos/wrap.c.orig 2004-01-20 06:38:48.000000000 -0600
|
|
|
|
+++ programs/demos/wrap.c 2004-01-20 06:37:35.000000000 -0600
|
2003-01-18 04:21:09 -05:00
|
|
|
@@ -131,7 +131,7 @@ void init_client(client_t *client, ggi_m
|
|
|
|
perror("fork");
|
|
|
|
exit(-1);
|
|
|
|
} else if (client->pid == 0) {
|
|
|
|
- execlp("/bin/sh","/bin/sh","-c", command, NULL);
|
|
|
|
+ execlp("/bin/sh","/bin/sh","-c", command, (void *)NULL);
|
|
|
|
_exit(-1);
|
|
|
|
} /* if */
|
|
|
|
|