update main #1

Merged
Sinipelto merged 240 commits from Bananymous/banan-os:main into main 2023-11-20 13:20:51 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 4f4b8ada8c - Show all commits

View File

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