]> git.saurik.com Git - android/aapt.git/commitdiff
Fix length of pattern.
authorYing Wang <wangying@google.com>
Tue, 22 May 2012 18:24:22 +0000 (11:24 -0700)
committerYing Wang <wangying@google.com>
Tue, 22 May 2012 18:35:22 +0000 (11:35 -0700)
After skipping * with "token++", the length should decrease by 1 as
well.

Change-Id: I132eb7d12bb756f2f713c607e92741ca834aef81

AaptAssets.cpp

index 73705ae54ba1fa2589494de8fa0f5c28abb3d8c3..f2fa3f57e245f83798174d181ca2e9348445830e 100644 (file)
@@ -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;
             }