Zero-terminate nickname

This commit is contained in:
Henrik Rydgård committed 2013-04-20 15:39:29 +02:00
1 parent 7ae0a07806
commit 84f1bc366d
1 file changed
+1
+1
View File
@@ -379,6 +379,7 @@ u32 sceUtilityGetSystemParamString(u32 id, u32 destaddr, u32 unknownparam)
switch (id) {
case PSP_SYSTEMPARAM_ID_STRING_NICKNAME:
strncpy(buf, g_Config.sNickName.c_str(), std::min<u32>(16, g_Config.sNickName.length()));
buf[15] = 0;
break;
default: