From 3ccc710cd389e3b818b0c025fe25e1c66e3f8a3d Mon Sep 17 00:00:00 2001 From: Trumeet Date: Tue, 7 Sep 2021 11:37:35 -0700 Subject: fix: use temp_str for second level matching --- mcin/mcin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcin/mcin.c b/mcin/mcin.c index b9c7ec6..8249860 100644 --- a/mcin/mcin.c +++ b/mcin/mcin.c @@ -124,7 +124,7 @@ char *mcin_matcher_match(MCINMatcher *matcher, const char *str) } for(int i = 0; i < count; i ++) { - if(!regexec(&arr[i], str, 0, NULL, 0)) + if(!regexec(&arr[i], temp_str, 0, NULL, 0)) { return temp_str; } -- cgit v1.2.3