nnn.c | 4 ++-- diff --git a/nnn.c b/nnn.c index 1b46491de44a413518037ef4e578babfd9356feb..450474dff2715f9c09b6f9b3e26766d47ff83734 100644 --- a/nnn.c +++ b/nnn.c @@ -2677,7 +2677,7 @@ if (tmp == NULL || tmp[0] == '\0') 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 @@ if (tmp == NULL || tmp[0] == '\0') 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; }