Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!smoke!bzs@bu-cs.bu.edu From: bzs@bu-cs.bu.edu (Barry Shein) Newsgroups: net.unix-wizards Subject: Bug in iconedit (SUN/3.0) Message-ID: <1011@brl-smoke.ARPA> Date: Mon, 19-May-86 18:07:12 EDT Article-I.D.: brl-smok.1011 Posted: Mon May 19 18:07:12 1986 Date-Received: Sun, 25-May-86 11:51:16 EDT Sender: news@brl-smoke.ARPA Lines: 42 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