From: Ying Wang Date: Tue, 22 May 2012 21:20:14 +0000 (-0700) Subject: am ac9f5057: am 996b073e: Fix length of pattern. X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/4bc0f49c625c59047a4ae1bfbb9a14f0c017a341?hp=30eceed5e2743ff7c799b72d6e508a5a457e09ef am ac9f5057: am 996b073e: Fix length of pattern. * commit 'ac9f50573dad2050d261850f1accbcea383cc6f0': Fix length of pattern. --- diff --git a/AaptAssets.cpp b/AaptAssets.cpp index 73705ae..f2fa3f5 100644 --- a/AaptAssets.cpp +++ b/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; }