--- gimp-2.0.3/regexrepl/regex.c.orig	2001-07-11 19:58:38.000000000 -0500
+++ gimp-2.0.3/regexrepl/regex.c	2004-07-29 12:03:54.000000000 -0500
@@ -1064,7 +1064,7 @@
 #if defined (MATCH_MAY_ALLOCATE)
 /* 4400 was enough to cause a crash on Alpha OSF/1,
    whose default stack limit is 2mb.  */
-int re_max_failures = 20000;
+int re_max_failures = 4000;
 #else
 int re_max_failures = 2000;
 #endif
