diff --git a/src/Transport/DataSink.cpp b/src/Transport/DataSink.cpp index d8d749c..d6a8f9e 100644 --- a/src/Transport/DataSink.cpp +++ b/src/Transport/DataSink.cpp @@ -35,7 +35,7 @@ DataSink::DataSink() common::DataBuffer DataSink::fill() { const auto offset = data_.size(); - data_.resize(data_.size() + cChunkSize); + data_.insert(data_.end(), cChunkSize, 0); return common::DataBuffer(&data_[offset], cChunkSize); }