Skip to content
Snippets Groups Projects
Commit 4654bb93 authored by yorhel's avatar yorhel
Browse files

Two small bug fixes: interface bug in the delete progress, and getpath...

Two small bug fixes: interface bug in the delete progress, and getpath returned double slash on root

git-svn-id: svn://blicky.net/ncdu/trunk@22 ce56bc8d-f834-0410-b703-f827bd498a76
parent 66bdf71f
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ static void drawProgress(char *file) {
wattroff(prg, A_BOLD);
mvwaddstr(prg, 1, 2, cropdir(file, 47));
mvwaddstr(prg, 5, 41, "Press q to abort");
mvwaddstr(prg, 4, 41, "Press q to abort");
wrefresh(prg);
delwin(prg);
......
......@@ -174,7 +174,7 @@ char *getpath(struct dir *cur, char *to) {
to[0] = '\0';
while(c--) {
if(list[c]->parent && list[c]->name[strlen(list[c]->name)-1] != '/')
if(list[c]->parent && list[c]->parent->name[strlen(list[c]->parent->name)-1] != '/')
strcat(to, "/");
strcat(to, list[c]->name);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment