aboutsummaryrefslogtreecommitdiff
path: root/bpkg/archive.cxx
diff options
context:
space:
mode:
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 ())