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

View file

@ -567,6 +567,13 @@ redraw:
/* Clean screen */ /* Clean screen */
erase(); erase();
/* Strip trailing slashes */
for (i = strlen(path) - 1; i > 0; i--)
if (path[i] == '/')
path[i] = '\0';
else
break;
DPRINTF_D(cur); DPRINTF_D(cur);
DPRINTF_S(path); DPRINTF_S(path);