aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/regex.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 198bbb931c7..d21df41fe56 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12004-12-05 Richard M. Stallman <rms@gnu.org>
2
3 * regex.c (regex_compile): Fix end-of-pattern case for space.
4
12004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 52004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 6
3 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype. 7 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
diff --git a/src/regex.c b/src/regex.c
index a53eac29216..130765134f5 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2558,8 +2558,8 @@ regex_compile (pattern, size, syntax, bufp)
2558 } 2558 }
2559 /* If the spaces are followed by a repetition op, 2559 /* If the spaces are followed by a repetition op,
2560 treat them normally. */ 2560 treat them normally. */
2561 if (p1 == pend 2561 if (p1 != pend
2562 || (*p1 == '*' || *p1 == '+' || *p1 == '?' 2562 && (*p1 == '*' || *p1 == '+' || *p1 == '?'
2563 || (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{'))) 2563 || (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{')))
2564 goto normal_char; 2564 goto normal_char;
2565 2565