Fix length of pattern.
After skipping * with "token++", the length should decrease by 1 as well. Change-Id: I132eb7d12bb756f2f713c607e92741ca834aef81
This commit is contained in:
@@ -122,6 +122,7 @@ static bool isHidden(const char *root, const char *path)
|
||||
if (token[0] == '*') {
|
||||
// Match *suffix
|
||||
token++;
|
||||
n--;
|
||||
if (n <= plen) {
|
||||
ignore = strncasecmp(token, path + plen - n, n) == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user