src/regex_parser.c

changeset 101
0cb645809b1a
parent 99
094eff4cfc03
child 102
665b60727a89
equal deleted inserted replaced
100:e72410a58188 101:0cb645809b1a
93 fprintf(stderr, "Regex-Error: 0x%08x", err); 93 fprintf(stderr, "Regex-Error: 0x%08x", err);
94 } 94 }
95 if (err == 0) { 95 if (err == 0) {
96 parser->pattern_match = 0; 96 parser->pattern_match = 0;
97 size_t input_len = strlen(input); 97 size_t input_len = strlen(input);
98 if (match.rm_eo < input_len) { 98 if (match.rm_eo < (regoff_t) input_len) {
99 if (parser->count_chars) { 99 if (parser->count_chars) {
100 /* do not exclude chars that occur after pattern end */ 100 /* do not exclude chars that occur after pattern end */
101 parser->matched_counted -= 101 parser->matched_counted -=
102 regex_parser_count_chars(input, match.rm_eo, input_len); 102 regex_parser_count_chars(input, match.rm_eo, input_len);
103 } else { 103 } else {

mercurial