From: mar77i Date: Tue, 25 Aug 2026 09:02:19 +0000 (+0200) Subject: search_matches: allow matches up to the colon X-Git-Url: https://git.mar77i.info/?a=commitdiff_plain;ds=sidebyside;p=otp_nano search_matches: allow matches up to the colon --- 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 ) ); }