From 54e90f75203bbf40ec6ac6dd09227e2c6f97cc62 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 21 Jun 2022 12:22:06 +0100 Subject: Add various command line arguments. There are too many really to use single-character args, so the next step should be a config file. --- src/string_vec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string_vec.c') diff --git a/src/string_vec.c b/src/string_vec.c index e55dea4..82b86e1 100644 --- a/src/string_vec.c +++ b/src/string_vec.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE /* Required for strcasestr */ #include #include #include @@ -100,7 +101,7 @@ struct string_vec string_vec_filter( { struct string_vec filt = string_vec_create(); for (size_t i = 0; i < vec->count; i++) { - if (strstr(vec->buf[i], substr) != NULL) { + if (strcasestr(vec->buf[i], substr) != NULL) { string_vec_add(&filt, vec->buf[i]); } } -- cgit v1.2.3