[cdesktopenv-devel] [PATCH] dttypes should not crash on 64-bit system

2012-09-21 Thread Marcin Cieslak
Casting (int) to (char **) will not prevent crash on a 64-bit system. A proper ANSI prototype has been added. --- cde/programs/util/dttypes/dttypes.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/programs/util/dttypes/dttypes.c b/cde/programs/util/dttypes/dttypes.c

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

2012-09-21 Thread Marcin Cieslak
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. Introduce unions to cast XtPointer into the requested data type. --- cde/programs/dtfile/File.c |2 +- cde/prog