Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2001 23:19:27 +0200 (CEST)
From:      calle.madestrand@norrgarden.se
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26804: update port: editors/lpe
Message-ID:  <200104232119.f3NLJRw08645@kiwi.sixpack.de>

next in thread | raw e-mail | index | archive | help

>Number:         26804
>Category:       ports
>Synopsis:       update port: editors/lpe
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 23 14:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104232119.f3NLJRw08645>