summaryrefslogtreecommitdiffstats
path: root/tools/aapt
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2012-05-22 11:24:22 -0700
committerYing Wang <wangying@google.com>2012-05-22 11:35:22 -0700
commit996b073e813ba1a22a13282ccdebb664f14ba898 (patch)
tree0f59bedc48c4da4a49b82eac6170c5d8d7e37e6f /tools/aapt
parent0eaeb69d1c4849da8ab1df70b84e90837193df67 (diff)
downloadframeworks_base-996b073e813ba1a22a13282ccdebb664f14ba898.zip
frameworks_base-996b073e813ba1a22a13282ccdebb664f14ba898.tar.gz
frameworks_base-996b073e813ba1a22a13282ccdebb664f14ba898.tar.bz2
Fix length of pattern.
After skipping * with "token++", the length should decrease by 1 as well. Change-Id: I132eb7d12bb756f2f713c607e92741ca834aef81
Diffstat (limited to 'tools/aapt')
-rw-r--r--tools/aapt/AaptAssets.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp
index 73705ae..f2fa3f5 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -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;
}