sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 9c037366967c80bf59d64e88113199446e3f871a
parent 71eeb21feb2394c743daa8047394cbda813c522a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 20 Apr 2015 18:32:15 +0200

tar: error if strdup fails (estrdup)

Diffstat:
Mtar.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tar.c b/tar.c @@ -210,7 +210,7 @@ unarchive(char *fname, ssize_t l, char b[BLKSIZ]) if (unlink(fname) < 0 && errno != ENOENT && errno != EISDIR) eprintf("unlink %s:", fname); - tmp = strdup(fname); + tmp = estrdup(fname); mkdirp(dirname(tmp)); free(tmp);