projects
/
unzip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9baa3f
)
Support '?' character in wild_compare
author
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:55:09 +0000
(
04:55
+0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Fri, 3 Oct 2025 03:55:09 +0000
(
04:55
+0100)
lib.c
patch
|
blob
|
history
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++;