aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nnn.c b/nnn.c
index 1b46491..450474d 100644
--- a/nnn.c
+++ b/nnn.c
@@ -2677,7 +2677,7 @@ nochange:
break;
/* Allow only relative, same dir paths */
- if (tmp[0] == '/' || basename(tmp) != tmp) {
+ if (tmp[0] == '/' || xstrcmp(basename(tmp), tmp) != 0) {
printmsg(STR_INPUT);
goto nochange;
}
@@ -2730,7 +2730,7 @@ nochange:
break;
/* Allow only relative, same dir paths */
- if (tmp[0] == '/' || basename(tmp) != tmp) {
+ if (tmp[0] == '/' || xstrcmp(basename(tmp), tmp) != 0) {
printmsg(STR_INPUT);
goto nochange;
}