diff options
author | lostd <lostd@2f30.org> | 2014-10-23 18:38:00 +0300 |
---|---|---|
committer | lostd <lostd@2f30.org> | 2014-10-23 18:38:00 +0300 |
commit | 9a14dcd8d2516e44feaf1a65af4ea8ac76fa33b5 (patch) | |
tree | 82fa760926f9170c5dfa65221df6d4dba2523115 /noice.c | |
parent | ce7411e93ab43cbad335dceb5f1d65f6ec81b174 (diff) | |
download | noice-9a14dcd8d2516e44feaf1a65af4ea8ac76fa33b5.tar.gz |
Revert "No need to manually strip trailing slashes"
This reverts commit abd301333da81b72070fbb575dcd0824d3af038e.
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |