X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/d35357226f49361bd6125654e5cff0bd5cab7556..c0de4d196e974fcd58060efe8a00776d3d70ad76:/AaptAssets.cpp 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; }