[hackers] [sbase] tar: error if strdup fails (estrdup) || Hiltjo Posthuma
commit 9c037366967c80bf59d64e88113199446e3f871a
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Mon Apr 20 18:32:15 2015 +0200
tar: error if strdup fails (estrdup)
diff --git a/tar.c b/tar.c
index f2d0a12..a115325 100644
--- a/tar.c
+++ b/tar.c
_AT_@ -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);
Received on Mon Apr 20 2015 - 18:33:00 CEST
This archive was generated by hypermail 2.3.0
: Mon Apr 20 2015 - 18:36:10 CEST