From 4654bb93c45eca5b60efe07883470d89a4b33427 Mon Sep 17 00:00:00 2001
From: yorhel <yorhel@ce56bc8d-f834-0410-b703-f827bd498a76>
Date: Sun, 5 Aug 2007 11:12:40 +0000
Subject: [PATCH] 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
---
 src/delete.c | 2 +-
 src/util.c   | 2 +-
 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);
   }
-- 
GitLab