diff options
Diffstat (limited to 'Source/Core/DiscIO/DirectoryBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DirectoryBlob.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DirectoryBlob.cpp b/Source/Core/DiscIO/DirectoryBlob.cpp index 7cd7e12def..8129684575 100644 --- a/Source/Core/DiscIO/DirectoryBlob.cpp +++ b/Source/Core/DiscIO/DirectoryBlob.cpp @@ -107,8 +107,7 @@ bool DiscContent::Read(u64* offset, u64* length, u8** buffer, DirectoryBlobReade else if (std::holds_alternative<ContentMemory>(m_content_source)) { const auto& content = std::get<ContentMemory>(m_content_source); - std::copy(content->begin() + offset_in_content, - content->begin() + offset_in_content + bytes_to_read, *buffer); + std::copy_n(content->begin() + offset_in_content, bytes_to_read, *buffer); } else if (std::holds_alternative<ContentPartition>(m_content_source)) { |
