]> Sergey Matveev's repositories - nnn.git/commitdiff
Use wrapper API
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 3 Aug 2020 16:55:42 +0000 (22:25 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 3 Aug 2020 16:55:42 +0000 (22:25 +0530)
src/nnn.c

index 16f94ad0cf957c6f7a5c509b7dde80b10f374e87..4a22723adfed50213a4455cba2e724ce1f05b635 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5731,7 +5731,7 @@ nochange:
                        if (sel == SEL_NAV_IN) {
                                /* If in listing dir, go to target on `l` or Right on symlink */
                                if (listpath && S_ISLNK(pdents[cur].mode)
-                                   && is_prefix(path, listpath, strlen(listpath))) {
+                                   && is_prefix(path, listpath, xstrlen(listpath))) {
                                        if (!realpath(pdents[cur].name, newpath)) {
                                                printwarn(&presel);
                                                goto nochange;