diff --git a/Core/HLE/sceUtility.cpp b/Core/HLE/sceUtility.cpp index 686f70dfa6..3cb4d668c4 100644 --- a/Core/HLE/sceUtility.cpp +++ b/Core/HLE/sceUtility.cpp @@ -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(16, g_Config.sNickName.length())); + strncpy(buf, g_Config.sNickName.c_str(), std::min(16, g_Config.sNickName.length())); break; default: