summaryrefslogtreecommitdiff
path: root/src/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/match.c')
-rw-r--r--src/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/match.c b/src/match.c
index a0c0785..d618f0a 100644
--- a/src/match.c
+++ b/src/match.c
@@ -56,7 +56,7 @@ static void setup_match_struct(struct match_struct *match, const char *needle, c
match->needle_len = strlen(needle);
match->haystack_len = strlen(haystack);
- if (match->needle_len > MATCH_MAX_LEN || match->needle_len > match->haystack_len) {
+ if (match->haystack_len > MATCH_MAX_LEN || match->needle_len > match->haystack_len) {
return;
}