Skip to content
Browse files

Merge branch 'nd/maint-compat-fnmatch-fix' into next

Will merge to 'next' and soon to 'master' and 'maint'.

* nd/maint-compat-fnmatch-fix:
  compat/fnmatch: fix off-by-one character class's length check
  • Loading branch information...
2 parents 151288f + f10e386 commit ce6fbe5b9dc5e1e8ce1499bd8f7fb982e0c68289 @gitster gitster committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compat/fnmatch/fnmatch.c
View
2 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;

0 comments on commit ce6fbe5

Please sign in to comment.
Something went wrong with that request. Please try again.