use 'dirname' as error message for xdirname
This commit is contained in:
parent
4f56d5dec6
commit
9693d1d1a9
1 changed files with 1 additions and 1 deletions
2
stagit.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue