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

39 lines
1.4 KiB
Plaintext

--- src/FmChmod.c.orig Thu Aug 23 08:45:26 2001
+++ src/FmChmod.c Sun Jan 3 01:03:08 2010
@@ -160,7 +160,7 @@
case 2: picts=bm[SUID_BM]; break; case 3: picts=bm[sUID_BM]; break;
}
chmode.items[0][2].value=j;
- XtVaSetValues(chmode.items[0][2].w, XtNbitmap, picts, 0);
+ XtVaSetValues(chmode.items[0][2].w, XtNbitmap, picts, NULL);
j=(chmode.items[1][2].value & S_IXGRP ? 1:0);
j+=(chmode.items[1][2].value & S_ISGID ? 2:0);
@@ -168,7 +168,7 @@
case 2: picts=bm[SUID_BM]; break; case 3: picts=bm[sUID_BM]; break;
}
chmode.items[1][2].value=j;
- XtVaSetValues(chmode.items[1][2].w, XtNbitmap, picts, 0);
+ XtVaSetValues(chmode.items[1][2].w, XtNbitmap, picts, NULL);
j=(chmode.items[2][2].value & S_IXOTH ? 1:0);
j+=(chmode.items[2][2].value & S_ISVTX ? 2:0);
@@ -176,7 +176,7 @@
case 2: picts=bm[STICKY_BM]; break; case 3: picts=bm[StICKY_BM]; break;
}
chmode.items[2][2].value=j;
- XtVaSetValues(chmode.items[2][2].w, XtNbitmap, picts, 0);
+ XtVaSetValues(chmode.items[2][2].w, XtNbitmap, picts, NULL);
#else
for (i=0; i<3; i++) {
for (j=0; j<3; j++) {
@@ -231,7 +231,7 @@
switch(k) { case 0: picts=bm[NOTICK_BM]; break; case 1: picts=bm[TICK_BM]; break;
case 2: picts=bm[STICKY_BM]; break; case 3: picts=bm[StICKY_BM]; break;
}
- XtVaSetValues(chmode.items[i][j].w, XtNbitmap, picts, 0);
+ XtVaSetValues(chmode.items[i][j].w, XtNbitmap, picts, NULL);
}
#endif
}