From: Ying Wang Date: Tue, 22 May 2012 18:24:22 +0000 (-0700) Subject: Fix length of pattern. X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/33e92afef721cdf2f0b7d4032f666b45da201e28?hp=f278f138487e78a7508f79e92cb9413914bbf501 Fix length of pattern. After skipping * with "token++", the length should decrease by 1 as well. Change-Id: I132eb7d12bb756f2f713c607e92741ca834aef81 --- 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; }