Skip to content

Commit 996b073

Browse files
author
Ying Wang
committed
Fix length of pattern.
After skipping * with "token++", the length should decrease by 1 as well. Change-Id: I132eb7d12bb756f2f713c607e92741ca834aef81
1 parent 0eaeb69 commit 996b073

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/aapt/AaptAssets.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ static bool isHidden(const char *root, const char *path)
122122
if (token[0] == '*') {
123123
// Match *suffix
124124
token++;
125+
n--;
125126
if (n <= plen) {
126127
ignore = strncasecmp(token, path + plen - n, n) == 0;
127128
}

0 commit comments

Comments
 (0)