Skip to content

Commit 98a0607

Browse files
Ying Wangralf-at-android
authored andcommitted
Merge "Fix length of pattern." DO NOT MERGE.
After skipping * with "token++", the length should decrease by 1 as well. (merged from 996b073) Change-Id: Ie6232ef603bb31e25e03b926e6c1bb92ac34902d
1 parent d4cb08d commit 98a0607

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)