diff options
Diffstat (limited to 'bpkg/fetch.cxx')
-rw-r--r-- | bpkg/fetch.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index a4f238a..d6e7d76 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -640,9 +640,10 @@ namespace bpkg is.close (); - string sha256sum (sha256 (o, bs)); + string s (bs.str ()); + string sha256sum (sha256 (s.c_str (), s.size ())); - istringstream ts (bs.str ()); // Text mode. + istringstream ts (s); // Text mode. manifest_parser mp (ts, url); M m (mp, ignore_unknown); |