summaryrefslogtreecommitdiff
path: root/editors/xemacs
diff options
context:
space:
mode:
authorGary Jennejohn <gj@FreeBSD.org>2004-04-18 20:28:17 +0000
committerGary Jennejohn <gj@FreeBSD.org>2004-04-18 20:28:17 +0000
commitad76ce6da93fcdd577b52373fa1ef7b039e7c989 (patch)
treebba3c8afe8dcd37b10971549c67a4dc256170b79 /editors/xemacs
parentPer dosirak run, fix PLIST_FILES. (diff)
Add patch-regex.c to handle an overflow which is caused by long lines
produced by compile and make output in xemacs. PR: ports/62437 Submitted by: Palle Girgensohn <girgen@pingpong.net>
Notes
Notes: svn path=/head/; revision=107488
Diffstat (limited to 'editors/xemacs')
-rw-r--r--editors/xemacs/files/patch-regex.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/xemacs/files/patch-regex.c b/editors/xemacs/files/patch-regex.c
new file mode 100644
index 000000000000..33c75b5894a0
--- /dev/null
+++ b/editors/xemacs/files/patch-regex.c
@@ -0,0 +1,11 @@
+--- src/regex.c.orig Sun Apr 18 22:13:51 2004
++++ src/regex.c Sun Apr 18 22:14:57 2004
+@@ -1135,7 +1135,7 @@
+ exactly that if always used MAX_FAILURE_SPACE each time we failed.
+ This is a variable only so users of regex can assign to it; we never
+ change it ourselves. */
+-#if defined (MATCH_MAY_ALLOCATE)
++#if defined (MATCH_MAY_ALLOCATE) || defined (REGEX_MALLOC)
+ /* 4400 was enough to cause a crash on Alpha OSF/1,
+ whose default stack limit is 2mb. */
+ int re_max_failures = 20000;