13 lines
440 B
Plaintext
13 lines
440 B
Plaintext
$OpenBSD: patch-programs_demos_cube3d_c,v 1.2 2004/01/20 13:50:53 todd Exp $
|
|
--- programs/demos/cube3d.c.orig 2004-01-20 06:38:43.000000000 -0600
|
|
+++ programs/demos/cube3d.c 2004-01-20 06:37:46.000000000 -0600
|
|
@@ -501,7 +501,7 @@ int spawn_bg(char *what)
|
|
if (pid == -1)
|
|
return -1;
|
|
if (pid == 0) {
|
|
- execlp("/bin/sh","/bin/sh","-c",what, NULL);
|
|
+ execlp("/bin/sh","/bin/sh","-c",what, (void *)NULL);
|
|
exit(127);
|
|
}
|
|
return pid;
|