oops, typo fix, sorry

This commit is contained in:
CrazyMax committed 2013-04-20 04:08:12 +03:00
1 parent fac6fb5faa
commit 83783a8f96
1 file changed
+1 -1
+1 -1
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:
strncpy(buf, g_Config.sNickName.c_str(), std::max<u32>(16, g_Config.sNickName.length()));
strncpy(buf, g_Config.sNickName.c_str(), std::min<u32>(16, g_Config.sNickName.length()));
break;
default: