aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/archive.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx
index e8fb073..9d19dc5 100644
--- a/bpkg/archive.cxx
+++ b/bpkg/archive.cxx
@@ -4,8 +4,6 @@
#include <bpkg/archive.hxx>
-#include <cstring> // strlen()
-
#include <libbutl/process.mxx>
#include <bpkg/utility.hxx>
@@ -32,7 +30,7 @@ namespace bpkg
static inline bool
bsdtar (const char* p)
{
- const char* l (path::traits::find_leaf (p, strlen (p)));
+ const char* l (path::traits::find_leaf (p));
return l != nullptr && casecmp (l, "bsdtar", 6) == 0;
}
#endif
@@ -48,7 +46,7 @@ namespace bpkg
const char* tar (co.tar_specified ()
? co.tar ().string ().c_str ()
#ifdef _WIN32
- : "tar"
+ : "bsdtar"
#else
: "tar"
#endif