From 5c02778ff8ebbfa3404f96561d94ce852be8648e Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Mon, 6 Jan 2025 10:14:49 +0100 Subject: wdye: improve portability --- tools/wdye/wdye.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/wdye/wdye.c') diff --git a/tools/wdye/wdye.c b/tools/wdye/wdye.c index 6ac5c0b..ac2b66b 100644 --- a/tools/wdye/wdye.c +++ b/tools/wdye/wdye.c @@ -73,7 +73,7 @@ execvpe (const char *file, char *const argv[], char *const envp[]) // This is a particularly inefficient algorithm, but it can match binary data. static const char * -memmem (const struct str *haystack, const struct str *needle, bool nocase) +str_memmem (const struct str *haystack, const struct str *needle, bool nocase) { if (haystack->len < needle->len) return NULL; @@ -999,7 +999,7 @@ pattern_match (struct pattern *self) } case PATTERN_EXACT: { - const char *match = memmem (buffer, &self->exact, self->nocase); + const char *match = str_memmem (buffer, &self->exact, self->nocase); if (!match) return false; -- cgit v1.2.3-70-g09d2