summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2011-05-14 11:15:55 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2011-05-14 11:15:55 +0000
commite240c3407218a5eaaab98fc14d26588c150a33dd (patch)
treea71fd3edf575bf3ace515ba7d75fdd9813aaf634 /strings
parent164cd91ecccfe0f3010206ffe0ec83ad893eacee (diff)
downloadapr-e240c3407218a5eaaab98fc14d26588c150a33dd.tar.gz
Fix another edge case, in [x-/] processing, which I can't seem
to compose the proper test-case to expose. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1103041 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings')
-rw-r--r--strings/apr_fnmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/apr_fnmatch.c b/strings/apr_fnmatch.c
index 2530dabb1..c3eea03d9 100644
--- a/strings/apr_fnmatch.c
+++ b/strings/apr_fnmatch.c
@@ -121,7 +121,7 @@ leadingclosebrace:
*/
/* XXX: Fix for locale/MBCS character width */
if (((*pattern)[1] == '-') && (*pattern)[2]
- && ((escape && ((*pattern)[2] != '\\'))
+ && (!(escape && ((*pattern)[2] == '\\'))
? (((*pattern)[2] != ']') && (!slash || ((*pattern)[2] != '/')))
: (((*pattern)[3]) && (!slash || ((*pattern)[3] != '/'))))) {
startch = *pattern;