openbsd-ports/x11/xfm/patches/patch-src_FmSelection_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

26 lines
553 B
Plaintext

--- src/FmSelection.c.orig Wed Sep 24 14:32:50 1997
+++ src/FmSelection.c Sun Jan 3 01:03:08 2010
@@ -45,7 +45,7 @@
XtVaSetValues(fw->status,
XtNbackground,saved_bg,
XtNforeground,saved_fg,
- 0);
+ NULL);
}
static Boolean ConvertSelection(
@@ -168,11 +168,11 @@
XtVaGetValues(fw->status,
XtNbackground,&saved_bg,
XtNforeground,&saved_fg,
- 0);
+ NULL);
XtVaSetValues(fw->status,
XtNbackground,resources.highlight_pixel,
XtNforeground,saved_bg,
- 0);
+ NULL);
selection_owner=fw;
} else {
unhighlight(fw);