use 'dirname' as error message for xdirname

This commit is contained in:
z3bra 2016-01-18 10:31:36 +00:00 committed by sin
parent 4f56d5dec6
commit 9693d1d1a9

View file

@ -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);