summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorz3bra <willyatmailoodotorg>2016-01-18 10:31:36 +0000
committersin <sin@2f30.org>2016-01-18 10:31:52 +0000
commit9693d1d1a965006c14d43a8e73aa9cc4f512e75f (patch)
treef0c8ebe61b46691893a3f0ccc8e542d073e1928c
parent4f56d5dec6c8fa5aabcac0154235fedeebe1f186 (diff)
use 'dirname' as error message for xdirname
-rw-r--r--stagit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index 3ab865e..69f72d1 100644
--- a/stagit.c
+++ b/stagit.c
@@ -154,7 +154,7 @@ xdirname(const char *path)
if (!(p = strdup(path)))
err(1, "strdup");
if (!(b = dirname(p)))
- err(1, "basename");
+ err(1, "dirname");
if (!(b = strdup(b)))
err(1, "strdup");
free(p);