aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-08-03 22:25:42 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-08-03 22:25:42 +0530
commit33953147d62d30fc69cf98f0cdaf01b5d3fdeb00 (patch)
treef7ff5431b0f1373a732ef9c7c86beac53b0dcd83
parentf03ddb587ccfa07c7a9c9099d8d1e21439a65887 (diff)
downloadnnn-33953147d62d30fc69cf98f0cdaf01b5d3fdeb00.tar.gz
Use wrapper API
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 16f94ad..4a22723 100644
--- 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;