Copy null terminator when decapping player name. (#4206)
This commit is contained in:
parent
d102467d8d
commit
d608af5662
1 changed files with 1 additions and 1 deletions
|
@ -3208,7 +3208,7 @@ static const u8 *BattleStringGetPlayerName(u8 *text, u8 battler)
|
|||
if (DECAP_ENABLED && !DECAP_NICKNAMES && toCpy != text && *toCpy != CHAR_FIXED_CASE)
|
||||
{
|
||||
*text = CHAR_FIXED_CASE;
|
||||
StringCopyN(text+1, toCpy, PLAYER_NAME_LENGTH);
|
||||
StringCopyN(text+1, toCpy, PLAYER_NAME_LENGTH + 1);
|
||||
toCpy = text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue