WriteString replaced

strcpy_trunc (defined in GNU.h) is better for fixed-length char arrays
This commit is contained in:
Nekotekina 2014-09-05 03:23:36 +04:00
parent 27b24132a0
commit 964c1bfd6c
10 changed files with 74 additions and 69 deletions

View file

@ -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()
{