Re: [cdesktopenv-devel] [PATCH] Fix dtfile crash on 64 bit

2012-09-22 Thread Jon Trulson
On Sat, 22 Sep 2012, Marcin Cieslak wrote: > When asking for data using XtVaGetValue() > make sure that there is enough place for > the return value (which is sometimes XtPointer). > Providing pointer to (int) is not enough. > > Cast XtPointer into requested int types > directly, which unfortunate

Re: [cdesktopenv-devel] [PATCH] Fix dtfile crash on 64 bit - how to cast XtPointer?

2012-09-22 Thread Marcin Cieslak
On Fri, 21 Sep 2012, Marcin Cieslak wrote: > + union { > + XtPointer ptr; > + Dimension dim; > + } wide; > + XtVaGetValues(dir_label, XmNwidth, &wide.ptr, NULL); > + d_width = wide.dim; > + XtVaGetValues(file_label, XmNwidth, &wide.ptr, NULL); > + f_width = wide.dim; Sorry, t