From 460e040a3ff405d8fc0de1e380610dd10764e6f3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 21 Apr 2000 04:56:35 +0000 Subject: Update. 2000-03-08 H.J. Lu * posix/regex.c (regex_compile): Correctly handle "\{" when the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set. --- posix/regex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'posix/regex.c') diff --git a/posix/regex.c b/posix/regex.c index 3e942d41f5..eb5a6b3d47 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: -- cgit 1.4.1