fix motifless build, keep original LIBS variable
[nedit-bw.git] / extend_regex_size.patch
blob13588729d994cf63766eca9cba0bcb147c05397f
1 From: unknown, probably Tony or maillist
2 Subject: Extend the size for regular expressions
4 ---
6 source/regularExp.c | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
9 diff --quilt old/source/regularExp.c new/source/regularExp.c
10 --- old/source/regularExp.c
11 +++ new/source/regularExp.c
12 @@ -452,7 +452,7 @@ static const char CVSID[] = "$Id: regula
14 #define REGEX_START_OFFSET 3
16 -#define MAX_COMPILED_SIZE 32767UL /* Largest size a compiled regex can be.
17 +#define MAX_COMPILED_SIZE 65535UL /* Largest size a compiled regex can be.
18 Probably could be 65535UL. */
20 /* Global work variables for `CompileRE'. */
21 @@ -614,7 +614,7 @@ regexp * CompileRE (const char *exp, cha
22 This is a real issue since the first BRANCH node usually points
23 to the end of the compiled regex code. */
25 - sprintf (Error_Text, "regexp > %lu bytes", MAX_COMPILED_SIZE);
26 + sprintf (Error_Text, "regexp > %lu bytes\n", MAX_COMPILED_SIZE);
27 REG_FAIL (Error_Text);