From owner-freebsd-bugs Mon Apr 29 21:10:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 23CFC37B404 for ; Mon, 29 Apr 2002 21:10:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3U4A3G97234; Mon, 29 Apr 2002 21:10:03 -0700 (PDT) (envelope-from gnats) Date: Mon, 29 Apr 2002 21:10:03 -0700 (PDT) Message-Id: <200204300410.g3U4A3G97234@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mark Valentine Subject: Re: bin/37552: Segfault in /usr/bin/ee Reply-To: Mark Valentine Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/37552; it has been noted by GNATS. From: Mark Valentine To: skyhawk@skyhawk.ca (Andrew Fremantle), freebsd-gnats-submit@freebsd.org Cc: sobomax@freebsd.org Subject: Re: bin/37552: Segfault in /usr/bin/ee Date: Tue, 30 Apr 2002 05:08:20 +0100 (BST) The following patch seems to fix it on my FreeBSD 4.5-STABLE system. count_win was only ever being set up with info_win at startup, and not when info_win is re-created from the menu options. count_win doesn't seem to exist in the vendor's latest version (1.4.5a). Cheers, Mark. Index: ee.c =================================================================== RCS file: /usr/cvs/src/usr.bin/ee/ee.c,v retrieving revision 1.16.2.5 diff -u -r1.16.2.5 ee.c --- ee.c 1 Sep 2001 16:35:45 -0000 1.16.2.5 +++ ee.c 30 Apr 2002 03:53:10 -0000 @@ -3692,6 +3692,9 @@ midscreen(min(scr_vert, last_line), point); clearok(info_win, TRUE); paint_info_win(); + count_win = newwin(1, COLS, 5, 0); + leaveok(count_win, TRUE); + wrefresh(count_win); wrefresh(text_win); clear_com_win = TRUE; } -- Mark Valentine, Thuvia Labs "Tigers will do ANYTHING for a tuna fish sandwich." Mark Valentine uses "We're kind of stupid that way." *munch* *munch* and endorses FreeBSD -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message