From 996b073e813ba1a22a13282ccdebb664f14ba898 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Tue, 22 May 2012 11:24:22 -0700 Subject: Fix length of pattern. After skipping * with "token++", the length should decrease by 1 as well. Change-Id: I132eb7d12bb756f2f713c607e92741ca834aef81 --- tools/aapt/AaptAssets.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/aapt') 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; } -- cgit v1.1