Browse files

p_b_cclass found wrong cclass (Nvi fd5795c).

  • Loading branch information...
1 parent 71096c6 commit babc1bec35dda1984b25548fb3122ccff86a616c @lichray committed Dec 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 regex/regcomp.c
View
2 regex/regcomp.c
@@ -818,7 +818,7 @@ p_b_cclass(register struct parse *p, register cset *cs)
NEXT();
len = p->next - sp;
for (cp = cclasses; cp->name != NULL; cp++)
- if (STRLEN(cp->name) == len && MEMCMP(cp->name, sp, len))
+ if (STRLEN(cp->name) == len && !MEMCMP(cp->name, sp, len))
break;
if (cp->name == NULL) {
/* oops, didn't find it */

0 comments on commit babc1be

Please sign in to comment.