From 9a14dcd8d2516e44feaf1a65af4ea8ac76fa33b5 Mon Sep 17 00:00:00 2001 From: lostd Date: Thu, 23 Oct 2014 18:38:00 +0300 Subject: [PATCH] Revert "No need to manually strip trailing slashes" This reverts commit abd301333da81b72070fbb575dcd0824d3af038e. --- noice.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/noice.c b/noice.c index 8eeb7d14..81df9075 100644 --- a/noice.c +++ b/noice.c @@ -567,6 +567,13 @@ 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);