diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-11-27 13:29:00 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-11-27 13:29:00 -0800 |
commit | 86ef7b37f921dccff6d940fb17005e0906a2bf3e (patch) | |
tree | a4f93ae59209a5e9fd12a583617ab453a67f6c8e /compat | |
parent | Merge branch 'jh/update-ref-d-through-symref' into maint (diff) | |
parent | compat/fnmatch: fix off-by-one character class's length check (diff) | |
download | tgif-86ef7b37f921dccff6d940fb17005e0906a2bf3e.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c index 9473aed2bb..0ff1d273a5 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; |