You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2011/05/14 11:53:07 UTC
svn commit: r1102992 - /apr/apr/trunk/strings/apr_fnmatch.c
Author: wrowe
Date: Sat May 14 09:53:06 2011
New Revision: 1102992
URL: http://svn.apache.org/viewvc?rev=1102992&view=rev
Log:
Fix []...] pattern bug noted by jorton
Modified:
apr/apr/trunk/strings/apr_fnmatch.c
Modified: apr/apr/trunk/strings/apr_fnmatch.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/strings/apr_fnmatch.c?rev=1102992&r1=1102991&r2=1102992&view=diff
==============================================================================
--- apr/apr/trunk/strings/apr_fnmatch.c (original)
+++ apr/apr/trunk/strings/apr_fnmatch.c Sat May 14 09:53:06 2011
@@ -93,7 +93,7 @@ static APR_INLINE int fnmatch_ch(const c
while (**pattern)
{
/* ']' is an ordinary character at the start of the range pattern */
- if ((**pattern == ']') && (*pattern > mismatch)) {
+ if ((**pattern == ']') && (*pattern > mismatch + 1)) {
++*pattern;
/* XXX: Fix for MBCS character width */
++*string;