fixed copy...

This commit is contained in:
georgemoralis 2024-07-29 15:45:13 +03:00
parent add32b40b6
commit 4eca347227
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags,
info->is_flexible.Assign(vma.type == VMAType::Flexible);
info->is_direct.Assign(vma.type == VMAType::Direct);
info->is_commited.Assign(vma.type != VMAType::Free);
std::copy(info->name.begin(), info->name.end(), vma.name.data());
vma.name.copy(info->name.data(), std::min(info->name.size(), vma.name.size()));
if (vma.type == VMAType::Direct) {
const auto dmem_it = FindDmemArea(vma.phys_base);
ASSERT(dmem_it != dmem_map.end());