sbase

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

commit aecd89e13b6aaa6fc56ba4a493ed95629db4b732
parent bef567a1036c1ba23d45c1a4293d23474085b431
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon Apr 20 18:32:15 +0200

tar: error if strdup fails (estrdup)

Diffstat:
tar.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);