diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-21 04:56:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-21 04:56:35 +0000 |
commit | 460e040a3ff405d8fc0de1e380610dd10764e6f3 (patch) | |
tree | b2b77a66479f301688a120ecd5dec0c6ba9f974c /posix | |
parent | d879eb855c93832a11472b07f9d09227e32b2e49 (diff) | |
download | glibc-460e040a3ff405d8fc0de1e380610dd10764e6f3.zip glibc-460e040a3ff405d8fc0de1e380610dd10764e6f3.tar.gz glibc-460e040a3ff405d8fc0de1e380610dd10764e6f3.tar.bz2 |
Update.
2000-03-08 H.J. Lu <hjl@gnu.org>
* posix/regex.c (regex_compile): Correctly handle "\{" when
the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
Diffstat (limited to 'posix')
-rw-r--r-- | posix/regex.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/posix/regex.c b/posix/regex.c index 3e942d4..eb5a6b3 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -2950,8 +2950,7 @@ regex_compile (pattern, size, syntax, bufp) if (!(syntax & RE_INTERVALS) /* If we're at `\{' and it's not the open-interval operator. */ - || ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES)) - || (p - 2 == pattern && p == pend)) + || (syntax & RE_NO_BK_BRACES)) goto normal_backslash; handle_interval: |