summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76>2007-08-05 11:12:40 +0000
committeryorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76>2007-08-05 11:12:40 +0000
commit4654bb93c45eca5b60efe07883470d89a4b33427 (patch)
tree57da04fc65baa2440cbac6f7b31b106406b57a0d
parent66bdf71f972944e6d93be0a5c25ad4e643af69ad (diff)
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
-rw-r--r--src/delete.c2
-rw-r--r--src/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/delete.c b/src/delete.c
index 29a87bb..de9e815 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -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);
diff --git a/src/util.c b/src/util.c
index e48ec48..e825bad 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);
}