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
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