summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-11-27 21:29:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-11-27 21:29:00 (GMT)
commit86ef7b37f921dccff6d940fb17005e0906a2bf3e (patch)
treea4f93ae59209a5e9fd12a583617ab453a67f6c8e /compat
parented20513c8de70e8bd7f18d2fb5beb1a81f49cdf8 (diff)
parentf10e3864dc3b0ba0051148f9b2b555df11fc337a (diff)
downloadgit-86ef7b37f921dccff6d940fb17005e0906a2bf3e.zip
git-86ef7b37f921dccff6d940fb17005e0906a2bf3e.tar.gz
git-86ef7b37f921dccff6d940fb17005e0906a2bf3e.tar.bz2
Merge branch 'nd/maint-compat-fnmatch-fix' into maint
* nd/maint-compat-fnmatch-fix: compat/fnmatch: fix off-by-one character class's length check
Diffstat (limited to 'compat')
-rw-r--r--compat/fnmatch/fnmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c
index 9473aed..0ff1d27 100644
--- a/compat/fnmatch/fnmatch.c
+++ b/compat/fnmatch/fnmatch.c
@@ -345,7 +345,7 @@ internal_fnmatch (pattern, string, no_leading_period, flags)
for (;;)
{
- if (c1 == CHAR_CLASS_MAX_LENGTH)
+ if (c1 > CHAR_CLASS_MAX_LENGTH)
/* The name is too long and therefore the pattern
is ill-formed. */
return FNM_NOMATCH;