[net.unix-wizards] Bug in iconedit

bzs@bu-cs.bu.edu (Barry Shein) (05/20/86)

Description:

	Selecting text in iconedit would cause core dumps

Repeat-by:

	Same

Fix:

Initialize abc_string in iconedit_canvas.c to point to a null string
rather than default to be a null pointer. Diff follows (trivial.)

-------
*** /usr.MC68020/src/sun/suntool/iconedit/iconedit_canvas.c.orig	Mon May 19 14:43:41 1986
--- /usr.MC68020/src/sun/suntool/iconedit/iconedit_canvas.c	Mon May 19 14:45:12 1986
***************
*** 18,24
  /**************************************************************************/
   
  CELL_POS        abc_cell_origin,abc_h_cell_origin,abc_feedback_origin;
! char           *abc_string;
  struct pr_size  abc_size;
  int             abc_len;
  struct pixfont *abc_font;

--- 18,27 -----
  /**************************************************************************/
   
  CELL_POS        abc_cell_origin,abc_h_cell_origin,abc_feedback_origin;
! /*
!  *	BZS@BU-CS.BU.EDU - 5/19/86: was core dumping, add init to null string
!  */
! char           *abc_string = "";
  struct pr_size  abc_size;
  int             abc_len;
  struct pixfont *abc_font;

----

	-Barry Shein, Boston University