richard@torch.UUCP (Richard Nuttall) (05/10/89)
There is a bug in the distributed version of xedit which causes a core dump on the sparc (SUN4). Below is a simple fix. 183c183,184 < XtGetValues(toplevel, args, XtNumber(args)); --- > /*XtGetValues(toplevel, args, XtNumber(args));*/ > XtGetValues(toplevel, args, 2); The problem occurs because XtNumber returns 3 (since that is the size of the array) but only 2 values are initialised. On all? machines except the sparc, the stack at that point happens to be 0. On the sparc, the values are not 0, and so invalid values result, causing a segmentation violation. -- Richard Nuttall | ukc!stc!datlog!torch!richard Torch Technology Ltd. | 0223 841000 X 309 Cambridge England |