aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-11-27 17:57:46 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-11-28 12:32:51 +0000
commitef8125e3aea8a7a364ffd1c154809a10f2f399f5 (patch)
tree9b684e559f96cafce8938d1f1819ed2db1d51441 /epan/ftypes
parentede0bc5d61a0aadb426f1be605f493d58a68f990 (diff)
Move two functions from epan to wsutil/str_util
Move epan_memmem() and epan_strcasestr() to wsutil/str_util. Rename to ws_memmem() and ws_strcasestr(). Add compile time check for a system implementation and use that if available. We invoke those functions using a wrapper to avoid exposing _GNU_SOURCE outside of the implementation.
Diffstat (limited to 'epan/ftypes')
-rw-r--r--epan/ftypes/ftype-bytes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/ftypes/ftype-bytes.c b/epan/ftypes/ftype-bytes.c
index 50d8d26131..3d3e27852c 100644
--- a/epan/ftypes/ftype-bytes.c
+++ b/epan/ftypes/ftype-bytes.c
@@ -545,7 +545,7 @@ cmp_contains(const fvalue_t *fv_a, const fvalue_t *fv_b)
GByteArray *a = fv_a->value.bytes;
GByteArray *b = fv_b->value.bytes;
- if (epan_memmem(a->data, a->len, b->data, b->len)) {
+ if (ws_memmem(a->data, a->len, b->data, b->len)) {
return TRUE;
}
else {