Skip to content
Snippets Groups Projects
Unverified Commit 517933ad authored by Frederic L's avatar Frederic L Committed by GitHub
Browse files

file_sys/vfs_vector: Fix ignored offset on Write

parent 90c780e6
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ std::size_t VectorVfsFile::Write(const u8* data_, std::size_t length, std::size_
if (offset + length > data.size())
data.resize(offset + length);
const auto write = std::min(length, data.size() - offset);
std::memcpy(data.data(), data_, write);
std::memcpy(data.data() + offset, data_, write);
return write;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment