mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-23 20:51:43 +00:00
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>
This commit is contained in:
parent
5505b4ee71
commit
f1ce53b22f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41843
25
editors/lpe/files/patch-af
Normal file
25
editors/lpe/files/patch-af
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user