diff options
Diffstat (limited to 'src/buildtool/storage/file_chunker.cpp')
-rw-r--r-- | src/buildtool/storage/file_chunker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/storage/file_chunker.cpp b/src/buildtool/storage/file_chunker.cpp index 08f0dc11..2a25cbf8 100644 --- a/src/buildtool/storage/file_chunker.cpp +++ b/src/buildtool/storage/file_chunker.cpp @@ -59,7 +59,7 @@ auto FileChunker::NextChunk() noexcept -> std::optional<std::string> { auto remaining = size_ - pos_; if (remaining < max_chunk_size_ and not stream_.eof()) { // Move the remaining bytes of the buffer to the front. - buffer_.copy(&buffer_[0], remaining, pos_); + buffer_.copy(buffer_.data(), remaining, pos_); auto ssize = static_cast<std::streamsize>(buffer_.size() - remaining); // Fill the buffer with stream content. stream_.read(&buffer_[remaining], ssize); |