aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-04-24 06:39:55 +0800
committerolgeni <olgeni@FreeBSD.org>2001-04-24 06:39:55 +0800
commit84e84553bd88bf5fcbfd06543bbe8cf94292c56e (patch)
tree55174dc87463fa15951698e995fd41fcaa026141 /editors
parentdad42ae2cae0995da38f59e656333f4dfb429df7 (diff)
downloadfreebsd-ports-gnome-84e84553bd88bf5fcbfd06543bbe8cf94292c56e.tar.gz
freebsd-ports-gnome-84e84553bd88bf5fcbfd06543bbe8cf94292c56e.tar.zst
freebsd-ports-gnome-84e84553bd88bf5fcbfd06543bbe8cf94292c56e.zip
Add patch to prevent core dumps, as reported by ports/26698.
Proposed file "patch-ae" already exists in Attic, and references a different source file. So i moved the patch to patch-af. PR: 26804 Submitted by: Carl Johan Madestrand <calle.madestrand@norrgarden.se>
Diffstat (limited to 'editors')
-rw-r--r--editors/lpe/files/patch-af25
1 files changed, 25 insertions, 0 deletions
diff --git a/editors/lpe/files/patch-af b/editors/lpe/files/patch-af
new file mode 100644
index 000000000000..4f1654e58739
--- /dev/null
+++ b/editors/lpe/files/patch-af
@@ -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);
+ }
+