summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wildcard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp
index 1b1f874ab..3b95b5f75 100644
--- a/src/wildcard.cpp
+++ b/src/wildcard.cpp
@@ -39,7 +39,7 @@ int wildcmp(char *wild, char *string)
char *cp, *mp;
while ((*string) && (*wild != '*'))
{
- if ((*wild != *string) && (*wild != '?'))
+ if ((lowermap[(unsigned)*wild] != lowermap[(unsigned)*string]) && (*wild != '?'))
{
return 0;
}