summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-26 00:28:58 +0100
committerGitHub <noreply@github.com>2019-02-26 00:28:58 +0100
commitc3471bf6185e6942bb76dee6408b10ea74e3f95d (patch)
treebcbc4752b904f479636dca973c51c178fdb2186a /src/core
parentMerge pull request #2158 from lioncash/table (diff)
parentfile_sys/vfs_vector: Fix ignored offset on Write (diff)
downloadyuzu-c3471bf6185e6942bb76dee6408b10ea74e3f95d.tar
yuzu-c3471bf6185e6942bb76dee6408b10ea74e3f95d.tar.gz
yuzu-c3471bf6185e6942bb76dee6408b10ea74e3f95d.tar.bz2
yuzu-c3471bf6185e6942bb76dee6408b10ea74e3f95d.tar.lz
yuzu-c3471bf6185e6942bb76dee6408b10ea74e3f95d.tar.xz
yuzu-c3471bf6185e6942bb76dee6408b10ea74e3f95d.tar.zst
yuzu-c3471bf6185e6942bb76dee6408b10ea74e3f95d.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/vfs_vector.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}