replace strcpy with memcpy for nickname string;

This commit is contained in:
CrazyMax 2013-04-19 22:40:06 +03:00
parent 34574f4e97
commit 4b5c1baa35

View file

@ -378,7 +378,7 @@ u32 sceUtilityGetSystemParamString(u32 id, u32 destaddr, u32 unknownparam)
char *buf = (char *)Memory::GetPointer(destaddr);
switch (id) {
case PSP_SYSTEMPARAM_ID_STRING_NICKNAME:
strcpy(buf, g_Config.sNickName.c_str());
memcpy(buf, g_Config.sNickName.c_str(), g_Config.sNickName.length());
break;
default: