mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12: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
|
@ -313,10 +313,10 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
template<typename T> void WriteString(const T addr, const std::string& str)
|
||||
{
|
||||
memcpy((char*)GetMemFromAddr<T>(addr), str.c_str(), str.size() + 1);
|
||||
}
|
||||
//template<typename T> void WriteString(const T addr, const std::string& str)
|
||||
//{
|
||||
// memcpy((char*)GetMemFromAddr<T>(addr), str.c_str(), str.size() + 1);
|
||||
//}
|
||||
|
||||
u32 GetUserMemTotalSize()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue