From: Ying Wang Date: Tue, 22 May 2012 18:43:14 +0000 (-0700) Subject: am 996b073e: Fix length of pattern. X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/1ae71b737237659d84b7564de9dcc182f98c98de?hp=67f67f6b41a036d958a17f231f907594f7777978 am 996b073e: Fix length of pattern. * commit '996b073e813ba1a22a13282ccdebb664f14ba898': 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; }