]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
On Windows, don't use _strdup directly because Borland C
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 20 Dec 2009 04:23:05 +0000 (23:23 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 20 Dec 2009 04:23:05 +0000 (23:23 -0500)
does not provide _strdup.

SVN-Revision: 1765

tar/tree.c

index 5cd6cadf4d6858459cb15ec27f9ad22bc6c9b0a6..6504ebf7d06ccd662f57b51a3a933d547491211f 100644 (file)
@@ -220,7 +220,7 @@ tree_push(struct tree *t, const char *path)
        te->name = strdup(path);
 #elif defined(_WIN32) && !defined(__CYGWIN__)
        te->symlink_parent_path = NULL;
-       te->name = _strdup(path);
+       te->name = strdup(path);
 #endif
        te->flags = needsDescent | needsOpen | needsAscent;
        te->dirname_length = t->dirname_length;