Revert "No need to manually strip trailing slashes"

This reverts commit abd301333d.
This commit is contained in:
lostd 2014-10-23 18:38:00 +03:00
parent ce7411e93a
commit 9a14dcd8d2
1 changed files with 7 additions and 0 deletions

View File

@ -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);