openbsd-ports/graphics/ggi/patches/patch-programs_demos_wrap_c

13 lines
453 B
Plaintext

$OpenBSD: patch-programs_demos_wrap_c,v 1.1 2003/01/18 09:21:09 pvalchev Exp $
--- programs/demos/wrap.c.orig Sat Jan 18 02:00:17 2003
+++ programs/demos/wrap.c Sat Jan 18 02:00:38 2003
@@ -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 */