aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-11-25 18:44:41 -0800
committerJunio C Hamano <gitster@pobox.com>2012-11-25 18:44:41 -0800
commit5ab539bb005498bc3cbf37d57a939b809a1c3dbc (patch)
tree7649ab2f94611cc2414c9ccbe5c0eea76fe5c090 /compat
parente0a7f2bbbbe9adfc9389c91a58ae44f85538e575 (diff)
parentf10e3864dc3b0ba0051148f9b2b555df11fc337a (diff)
downloadgit-5ab539bb005498bc3cbf37d57a939b809a1c3dbc.tar.gz
git-5ab539bb005498bc3cbf37d57a939b809a1c3dbc.tar.xz
Merge branch 'nd/maint-compat-fnmatch-fix'
* 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 9473aed2b..0ff1d273a 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;