aboutsummaryrefslogtreecommitdiff
path: root/bpkg/archive.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-30 14:44:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-31 00:55:22 +0300
commitbe8ddf26165f25d323657c1e6553af9b42b6d6bf (patch)
tree759584203412294b7b43cf4e05b9f0431c3ec40b /bpkg/archive.cxx
parent52c0019692491173b934111c31c2a0bba84c6d71 (diff)
Make use of butl::openssl, ifdstream::read_text() and ifdstream::read_binary()
Diffstat (limited to 'bpkg/archive.cxx')
-rw-r--r--bpkg/archive.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx
index ce62fab..f3c41f8 100644
--- a/bpkg/archive.cxx
+++ b/bpkg/archive.cxx
@@ -144,8 +144,7 @@ namespace bpkg
//
ifdstream is (move (pr.second.in_ofd), ifdstream::badbit);
- string s;
- getline (is, s, '\0');
+ string s (is.read_text ());
is.close ();
if (pr.second.wait () && pr.first.wait ())