mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
fix(Spoofing): Local name properly null terminated (#793)
This commit is contained in:
parent
c7f45ee5a9
commit
547c3ed759
@ -18,7 +18,9 @@ namespace big
|
|||||||
// set our local spoofed name
|
// set our local spoofed name
|
||||||
if (g.spoofing.spoof_username && g.spoofing.spoof_local_username)
|
if (g.spoofing.spoof_username && g.spoofing.spoof_local_username)
|
||||||
{
|
{
|
||||||
local_name_patch = memory::byte_patch::make(g_pointers->m_chat_gamer_info->m_name, g.spoofing.username).get();
|
std::array<char, 17> local_name;
|
||||||
|
std::copy(g.spoofing.username.begin(), g.spoofing.username.end(), local_name.data());
|
||||||
|
local_name_patch = memory::byte_patch::make(g_pointers->m_chat_gamer_info->m_name, local_name).get();
|
||||||
local_name_patch->apply();
|
local_name_patch->apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user