Support '?' character in wild_compare
authorRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:55:09 +0000 (04:55 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:55:09 +0000 (04:55 +0100)
lib.c

diff --git a/lib.c b/lib.c
index 491432ce76b2650d0f417c60df1de67a7af6e561..4f167689373e14a0ede25069cefa364ef891b723 100755 (executable)
--- 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++;