Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 996b073e authored by Ying Wang's avatar Ying Wang
Browse files

Fix length of pattern.

After skipping * with "token++", the length should decrease by 1 as
well.

Change-Id: I132eb7d12bb756f2f713c607e92741ca834aef81
parent 0eaeb69d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
            }