From 8be9f9e93371403dc056f1b13f8b93ff3863eaad Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Tue, 22 May 2012 11:24:22 -0700 Subject: [PATCH] Merge "Fix length of pattern." DO NOT MERGE. After skipping * with "token++", the length should decrease by 1 as well. (merged from 996b073e813ba1a22a13282ccdebb664f14ba898) Change-Id: Ie6232ef603bb31e25e03b926e6c1bb92ac34902d --- AaptAssets.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/AaptAssets.cpp b/AaptAssets.cpp index eba77c2..7d735ad 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; } -- 2.45.2