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

15 lines
446 B
Plaintext

--- src/TextField.c.orig Tue Apr 4 11:05:36 2000
+++ src/TextField.c Sun Jan 3 01:03:08 2010
@@ -3437,9 +3437,9 @@
/* need to copy it first */
strncpy(TF.buffer,TF.backup,TF.maxlen);
TF.buffer[TF.maxlen-1]=0;
- XtVaSetValues(w,XtNstring,TF.buffer,0);
+ XtVaSetValues(w,XtNstring,TF.buffer,NULL);
} else {
- XtVaSetValues(w,XtNstring,TF.backup,0);
+ XtVaSetValues(w,XtNstring,TF.backup,NULL);
}
TF.modified_by_user = False;