Skip to content

Commit 54a2a6d

Browse files
ralf-at-androidandroid code review
authored andcommitted
Merge "Merge "Fix length of pattern." DO NOT MERGE."
2 parents 84bda3e + 98a0607 commit 54a2a6d

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)