diff options
-rw-r--r-- | engines/xeen/character.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/character.cpp b/engines/xeen/character.cpp index 2ab532938b..b0502d254a 100644 --- a/engines/xeen/character.cpp +++ b/engines/xeen/character.cpp @@ -724,7 +724,7 @@ void Character::clear() { void Character::synchronize(Common::Serializer &s) { char name[16]; Common::fill(&name[0], &name[16], '\0'); - strncpy(name, _name.c_str(), 16); + Common::strlcpy(name, _name.c_str(), 16); s.syncBytes((byte *)name, 16); if (s.isLoading()) |