From 94ca0e1ed73c876a0fd96fa577deaef29ee6584c Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Fri, 3 Oct 2025 04:55:09 +0100 Subject: [PATCH] Support '?' character in wild_compare --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index 491432c..4f16768 100755 --- a/lib.c +++ b/lib.c @@ -192,7 +192,7 @@ int wild_compare (const char *wild, const char *s) { mp = wild; cp = s + 1; - } else if (*wild == *s) { + } else if (*wild == *s || *wild == '?') { wild++; s++; -- 2.34.1