From 63253453e5f9249f46e4600920eea8b6e7007572 Mon Sep 17 00:00:00 2001 From: Avinash Sonawane Date: Sun, 26 Sep 2021 21:29:54 +0530 Subject: [PATCH] Use strchr instead of strstr Thanks-to: @xiota and @andy5995 --- src/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.c b/src/build.c index 4085fd7bb0..2bbc72d080 100644 --- a/src/build.c +++ b/src/build.c @@ -1063,7 +1063,7 @@ gboolean build_parse_make_dir(const gchar *string, gchar **prefix) gchar *input; /* get the start of the path */ - pos = strstr(string, "/"); + pos = strchr(pos, "/"); if (pos == NULL) return FALSE;