openbsd-ports/x11/xfm/patches/patch-src_FmMain_c
jasper 2cdf4e833e - fix seg. faults on amd64 due to many
vararg libXt calls (XtVa...) being terminated with 0 instead of with NULL.

from nima hoda, thanks!
2010-01-03 21:49:06 +00:00

21 lines
701 B
Plaintext

--- src/FmMain.c.orig Thu Aug 23 08:45:26 2001
+++ src/FmMain.c Sun Jan 3 01:03:08 2010
@@ -353,7 +353,7 @@
perror("(child) Can't close pipe");
exit(1);
}
- execlp(ui->shell, ui->shell, "-c", "echo $*", "1", NULL);
+ execlp(ui->shell, ui->shell, "-c", "echo $*", "1", (void *)NULL);
perror("Exec failed");
exit(1);
} else { /* parent; read and check the child's output */
@@ -655,7 +655,7 @@
/* create a dummy window to store the WM_COMMAND property */
XtVaSetValues(aw.shell,
XtNmappedWhenManaged,False,
- 0);
+ NULL);
}
/* still realize and set the WM properties. the WM needs
* a window around and kwm is even able to restart an app