Remove safe guards around strings own the input for

This commit is contained in:
Anders Jenbo 2021-11-22 03:29:25 +01:00
commit 6e63354cd1
7 changed files with 37 additions and 54 deletions

View file

@ -10,7 +10,6 @@
#include "loadsave.h"
#include "stores.h"
#include "utils/endian.hpp"
#include "utils/utf8.hpp"
namespace devilution {
@ -223,7 +222,7 @@ bool UnPackPlayer(const PlayerPack *pPack, Player &player, bool netSync)
ClrPlrPath(player);
player.destAction = ACTION_NONE;
CopyUtf8(player._pName, pPack->pName, sizeof(player._pName));
strcpy(player._pName, pPack->pName);
InitPlayer(player, true);