From 0e8ccdd2d9e2ee187d49c79b607c0e02902fe1d9 Mon Sep 17 00:00:00 2001 From: mar77i Date: Tue, 25 Aug 2026 11:02:19 +0200 Subject: [PATCH] search_matches: allow matches up to the colon --- decrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decrypt.c b/decrypt.c index 7c6b9e4..17fa13c 100644 --- a/decrypt.c +++ b/decrypt.c @@ -173,7 +173,7 @@ static inline search_matches(uint8_t *search, uint8_t *line, uint8_t colon_offse search == NULL || *search == '\0' || ( // or a match was made excluding the : (ptr = strstr(line, search)) != NULL - && ptr + strlen(search) < line + colon_offset + && ptr + strlen(search) <= line + colon_offset ) ); } -- 2.55.0