diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index f87e0e31c0..b57f6eb0ea 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -196,7 +196,7 @@ bool CNANDContentDataBuffer::GetRange(u32 start, u32 size, u8* buffer) if (start + size > m_buffer.size()) return false; - std::copy(&m_buffer[start], &m_buffer[start + size], buffer); + std::copy_n(&m_buffer[start], size, buffer); return true; }