aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftype-string.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-12-21 00:04:33 +0000
committerJoão Valverde <j@v6e.pt>2021-12-21 00:40:02 +0000
commit36d5aad962f6c481a4aed09a0a8f7a575fcbdd12 (patch)
tree9952f0da08ff8633dac374776ddb60562bf01c55 /epan/ftypes/ftype-string.c
parent392745c56f304dc851c02b91dde6f8ce9710c3b2 (diff)
wsutil: Split ws_regex_matches() into two functions
Split ws_regex_matches() into two functions with better semantics and remove the WS_REGEX_ZERO_TERMINATED symbol. ws_regex_matches() matches zero terminated strings. ws_regex_matches_length() matches a string length in code units.
Diffstat (limited to 'epan/ftypes/ftype-string.c')
-rw-r--r--epan/ftypes/ftype-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/ftypes/ftype-string.c b/epan/ftypes/ftype-string.c
index 133f5a9b38..606cdd0194 100644
--- a/epan/ftypes/ftype-string.c
+++ b/epan/ftypes/ftype-string.c
@@ -152,7 +152,7 @@ cmp_matches(const fvalue_t *fv, const ws_regex_t *regex)
if (! regex) {
return FALSE;
}
- return ws_regex_matches(regex, str, WS_REGEX_ZERO_TERMINATED);
+ return ws_regex_matches(regex, str);
}
void