X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/46eefaf3a45d4f33b3032ff86388358ec6dc775e..746e987f41f60fb61d8e6a2b14cd3d88f2ba521e:/AaptAssets.cpp?ds=sidebyside 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; }