mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
Zero-terminate nickname
This commit is contained in:
1 parent
7ae0a07806
commit
84f1bc366d
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user