This patch makes the changes below to all test cases that appeared to be affected.
1) Variable argument lists for XtVa*() or XmVa*() calls are terminated with NULL rather than 0.
2) Variable arguments to XmVa*() calls which are expected to be of the type KeySym are explicitly cast to that type.
The changes were made to better ensure that the default conversions applied by the compiler to variable arguments will result in types that match in size the types expected by the variable argument processing in libXt or libXm. On a Linux x86_64 system (Debian 4.0 with gcc 4.1.2) where I used the default configuration options for LessTif, I did not observe any problems related to variable argument processing for these test cases, but given the problem seen in bug #1930782, the changes in the patch may prevent problems with variable argument processing when using different compiler options or a different compiler.
The patch was computed against the LessTif files from CVS as of 31 March 2008. It can be applied to the LessTif sources by running
patch -Np1 <name_of_patch_file
from the top-level directory of the LessTif files.
patch file generated with diff -Naur lesstif lesstif-modified