freebsd-ports/editors/xemacs-devel-mule/files/patch-regex.c
Sergey Matveychuk 261feb1dc8 * Update to 21.5-b21 "corn"
* Unbreak on non-i386 platforms
* Update EMACS_VER on editors/xemacs-devel-mule
* Fix EMACS_VER on editors/xemacs-devel

PR:		ports/81866
Submitted by:	Andrey Slusar <anrays@gmail.com> (maintainer)
2005-06-04 09:56:18 +00:00

11 lines
501 B
C

--- src/regex.c.orig Sun Apr 18 22:19:13 2004
+++ src/regex.c Sun Apr 18 22:18:40 2004
@@ -1322,7 +1322,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;