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

13 lines
471 B
Plaintext
Raw Normal View History

$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
@@ -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 */