From oliver@supermarkt.de  Mon Apr 23 14:22:05 2001
Return-Path: <oliver@supermarkt.de>
Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82])
	by hub.freebsd.org (Postfix) with ESMTP id 727DD37B423
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Apr 2001 14:22:04 -0700 (PDT)
	(envelope-from oliver@supermarkt.de)
Received: from fwd00.sul.t-online.com 
	by mailout05.sul.t-online.com with smtp 
	id 14rnmU-0000MO-05; Mon, 23 Apr 2001 23:22:02 +0200
Received: from kim.sixpack.de (520030847883-0001@[217.0.186.246]) by fmrl00.sul.t-online.com
	with esmtp id 14rnmQ-0Oc9R3C; Mon, 23 Apr 2001 23:21:58 +0200
Received: from kiwi.sixpack.de (kiwi.sixpack.de [192.168.2.32])
	by kim.sixpack.de (8.11.3/8.11.1) with ESMTP id f3NLJS917592
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 23 Apr 2001 23:19:28 +0200 (CEST)
	(envelope-from oliver@sixpack.de)
Received: (from oliver@localhost)
	by kiwi.sixpack.de (8.11.3/8.9.3) id f3NLJRw08645;
	Mon, 23 Apr 2001 23:19:27 +0200 (CEST)
	(envelope-from oliver)
Message-Id: <200104232119.f3NLJRw08645@kiwi.sixpack.de>
Date: Mon, 23 Apr 2001 23:19:27 +0200 (CEST)
From: calle.madestrand@norrgarden.se
To: FreeBSD-gnats-submit@freebsd.org
Subject: update port: editors/lpe
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         26804
>Category:       ports
>Synopsis:       update port: editors/lpe
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 23 14:30:01 PDT 2001
>Closed-Date:    Mon Apr 23 15:40:19 PDT 2001
>Last-Modified:  Mon Apr 23 15:47:20 PDT 2001
>Originator:     Carl Johan Madestrand
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
>Environment:
>Description:
Patch to prevent core dump by Ryan Thompson <ryan@sasknow.com>
>How-To-Repeat:
>Fix:




diff -urN /usr/ports/editors/lpe/files/patch-ae lpe/files/patch-ae
--- /usr/ports/editors/lpe/files/patch-ae	Thu Jan  1 01:00:00 1970
+++ lpe/files/patch-ae	Mon Apr 23 13:41:50 2001
@@ -0,0 +1,25 @@
+--- src/lpe.c	Thu Apr 19 02:16:41 2001
++++ src/lpe.c	Thu Apr 19 03:08:30 2001
+@@ -48,13 +48,17 @@
+ {
+     buffer *node;
+ 
+-    while (the_buf->next != the_buf)
++    if (the_buf->text != NULL)
+     {
+-        node = the_buf->next;
+-        the_buf->next = the_buf->next->next;
+-        the_buf->next->prev = the_buf;
+-        free(node);
++    	while (the_buf->next != the_buf)
++    	{
++	        node = the_buf->next;
++	        the_buf->next = the_buf->next->next;
++	        the_buf->next->prev = the_buf;
++	        free(node);
++    	}
+     }
++    	
+     free(the_buf);
+ }
+ 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: olgeni 
State-Changed-When: Mon Apr 23 15:40:19 PDT 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26804 
>Unformatted:
