Skip to content
This repository
Browse code

p_b_cclass found wrong cclass (Nvi fd5795c).

  • Loading branch information...
commit babc1bec35dda1984b25548fb3122ccff86a616c 1 parent 71096c6
Zhihao Yuan authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  regex/regcomp.c
2  regex/regcomp.c
@@ -818,7 +818,7 @@ p_b_cclass(register struct parse *p, register cset *cs)
818 818 NEXT();
819 819 len = p->next - sp;
820 820 for (cp = cclasses; cp->name != NULL; cp++)
821   - if (STRLEN(cp->name) == len && MEMCMP(cp->name, sp, len))
  821 + if (STRLEN(cp->name) == len && !MEMCMP(cp->name, sp, len))
822 822 break;
823 823 if (cp->name == NULL) {
824 824 /* oops, didn't find it */

0 comments on commit babc1be

Please sign in to comment.
Something went wrong with that request. Please try again.