Use buffer in STBlob

This commit is contained in:
seelabs
2015-03-12 11:54:15 -07:00
committed by Tom Ritchford
parent 8ca9fa1c26
commit 803f5b5613
10 changed files with 102 additions and 77 deletions

View File

@@ -418,7 +418,8 @@ static std::unique_ptr <STBase> parseLeaf (
if (!vBlob.second)
throw std::invalid_argument ("invalid data");
ret = std::make_unique <STBlob> (field, vBlob.first);
ret = std::make_unique <STBlob> (field, vBlob.first.data (),
vBlob.first.size ());
}
catch (...)
{