diff --git a/kernel/kernel/FS/RamFS/Inode.cpp b/kernel/kernel/FS/RamFS/Inode.cpp index 0492b00d..5c0f0231 100644 --- a/kernel/kernel/FS/RamFS/Inode.cpp +++ b/kernel/kernel/FS/RamFS/Inode.cpp @@ -62,7 +62,7 @@ namespace Kernel if (offset >= size()) return 0; size_t to_copy = BAN::Math::min(m_inode_info.size - offset, buffer.size()); - memcpy(buffer.data(), m_data.data(), to_copy); + memcpy(buffer.data(), m_data.data() + offset, to_copy); return to_copy; }