[comp.windows.x] Xhp Non-portable code

hadley@ics.uci.edu (T.S. Hadley) (07/11/89)

   Some of the Xhp code included with the X11 R3 distribution 
   (contrib/widgets/Xhp) dereferences NULL pointers.

   Example:
      Xw/SText : 

	 ...
	 strcpy(stp->output_string, stp->input_string);
   
      Where stp->input_string CAN be NULL.
   
   While this causes no problems (I'm told) on a Vax with VMS/BSD,
   on my Sun (SunOS 4.0) it immediately causes a segmentation violation.

   Has anyone created a patch to this library to fix the problem?

   Grateful thanks.
--
Tedd Hadley (hadley@ics.uci.edu)