diff options
| author | Richard M. Stallman <rms@gnu.org> | 2004-12-05 23:34:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 2004-12-05 23:34:44 +0000 |
| commit | c721eee5e3f5fcd0ef53de43cea712146d08d131 (patch) | |
| tree | 9151070e679a580a952a192f3b9805c24af69410 /src/regex.c | |
| parent | 33b3f667edf593f9fd6943b41d6b37b69a1511a5 (diff) | |
| download | emacs-c721eee5e3f5fcd0ef53de43cea712146d08d131.tar.gz | |
(regex_compile): Fix end-of-pattern case for space.
Diffstat (limited to 'src/regex.c')
| -rw-r--r-- | src/regex.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) } /* If the spaces are followed by a repetition op, treat them normally. */ - if (p1 == pend - || (*p1 == '*' || *p1 == '+' || *p1 == '?' + if (p1 != pend + && (*p1 == '*' || *p1 == '+' || *p1 == '?' || (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{'))) goto normal_char; |
