Kernel: Fix read offset of RamFileInode

This commit is contained in:
Bananymous 2023-10-25 02:53:20 +03:00
parent 9e4adc1264
commit 4f4b8ada8c
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ namespace Kernel
if (offset >= size())
return 0;
size_t to_copy = BAN::Math::min<size_t>(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;
}