]> git.saurik.com Git - android/aapt.git/commitdiff
am ac9f5057: am 996b073e: Fix length of pattern.
authorYing Wang <wangying@google.com>
Tue, 22 May 2012 21:20:14 +0000 (14:20 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Tue, 22 May 2012 21:20:14 +0000 (14:20 -0700)
* commit 'ac9f50573dad2050d261850f1accbcea383cc6f0':
  Fix length of pattern.

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;
             }