From abd301333da81b72070fbb575dcd0824d3af038e Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 22 Oct 2014 14:18:15 +0100 Subject: No need to manually strip trailing slashes We use realpath() now. --- noice.c | 7 ------- 1 file changed, 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); -- cgit v1.2.3-70-g09d2