| 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 { |