summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorFrederic L <frederic.laing.development@gmail.com>2019-02-25 00:27:49 +0100
committerGitHub <noreply@github.com>2019-02-25 00:27:49 +0100
commit517933adcbeaf251ca15cb34989e889446cf1c92 (patch)
treed1c63bf1e23d434581b4a2fcf4aa801d97f06a9b /src/core/file_sys
parentMerge pull request #2139 from degasus/dma_pusher (diff)
downloadyuzu-517933adcbeaf251ca15cb34989e889446cf1c92.tar
yuzu-517933adcbeaf251ca15cb34989e889446cf1c92.tar.gz
yuzu-517933adcbeaf251ca15cb34989e889446cf1c92.tar.bz2
yuzu-517933adcbeaf251ca15cb34989e889446cf1c92.tar.lz
yuzu-517933adcbeaf251ca15cb34989e889446cf1c92.tar.xz
yuzu-517933adcbeaf251ca15cb34989e889446cf1c92.tar.zst
yuzu-517933adcbeaf251ca15cb34989e889446cf1c92.zip
Diffstat (limited to 'src/core/file_sys')
-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;
}