aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sin <sin@2f30.org>2014-10-22 14:18:15 +0100
committerGravatar sin <sin@2f30.org>2014-10-22 14:18:15 +0100
commitabd301333da81b72070fbb575dcd0824d3af038e (patch)
tree8a41ebc979c3c3d37b17a3e80151e5837d9e7a9a
parent9d25101ad9be009d4bceb56c67e01c2b5857129f (diff)
downloadnnn-abd301333da81b72070fbb575dcd0824d3af038e.tar.gz
No need to manually strip trailing slashes
We use realpath() now.
-rw-r--r--noice.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/noice.c b/noice.c
index 573c90a..b7f3ba0 100644
--- a/noice.c
+++ b/noice.c
@@ -491,13 +491,6 @@ redraw:
/* Clean screen */
erase();
- /* Strip trailing slashes */
- for (i = strlen(path) - 1; i > 0; i--)
- if (path[i] == '/')
- path[i] = '\0';
- else
- break;
-
DPRINTF_D(cur);
DPRINTF_S(path);