From 517933adcbeaf251ca15cb34989e889446cf1c92 Mon Sep 17 00:00:00 2001 From: Frederic L Date: Mon, 25 Feb 2019 00:27:49 +0100 Subject: file_sys/vfs_vector: Fix ignored offset on Write --- src/core/file_sys/vfs_vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/file_sys/vfs_vector.cpp b/src/core/file_sys/vfs_vector.cpp index 515626658..75fc04302 100644 --- a/src/core/file_sys/vfs_vector.cpp +++ b/src/core/file_sys/vfs_vector.cpp @@ -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; } -- cgit v1.2.3