Fix dtfile crash on 64 bit
authorMarcin Cieslak <saper@saper.info>
Sat, 22 Sep 2012 10:05:57 +0000 (12:05 +0200)
committerJon Trulson <jon@radscan.com>
Sun, 23 Sep 2012 01:04:21 +0000 (19:04 -0600)
commit1041e0800387a8af7eb99ba3c7b5195aa7d9b157
tree5fd12e8735cb4937874c1b4dbdc8ba11eeb84505
parent9b77aa08b4730e613f82fc9dc26a94a41b4dcc3a
Fix dtfile crash on 64 bit

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 unfortunately introduces
compilation warning:

cast from pointer to integer of different size
cde/programs/dtfile/File.c
cde/programs/dtfile/FileDialog.c
cde/programs/dtfile/OverWrite.c
cde/programs/dtfile/dtcopy/utils.c