mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
WriteString replaced
strcpy_trunc (defined in GNU.h) is better for fixed-length char arrays
This commit is contained in:
parent
27b24132a0
commit
964c1bfd6c
10 changed files with 74 additions and 69 deletions
|
|
@ -56,7 +56,7 @@ void PPUThread::AddArgv(const std::string& arg)
|
|||
m_stack_point -= arg.length() + 1;
|
||||
m_stack_point = AlignAddr(m_stack_point, 0x10) - 0x10;
|
||||
m_argv_addr.push_back(m_stack_point);
|
||||
Memory.WriteString(m_stack_point, arg);
|
||||
memcpy(vm::get_ptr<char>(m_stack_point), arg.c_str(), arg.size() + 1);
|
||||
}
|
||||
|
||||
void PPUThread::InitRegs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue