diff --git a/src/core/memory.cpp b/src/core/memory.cpp index b667b87cb..4c10f7a1f 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -615,7 +615,7 @@ int MemoryManager::VirtualQuery(VAddr addr, int flags, info->is_pooled = vma.type == VMAType::PoolReserved || vma.type == VMAType::Pooled ? 1 : 0; info->is_committed = vma.IsMapped() ? 1 : 0; - strcpy(info->name, vma.name.data()); + strncpy(info->name, vma.name.data(), 32); if (vma.type == VMAType::Direct) { const auto dmem_it = FindDmemArea(vma.phys_base);