aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-03 16:47:05 -0400
committerPaul Gilbert2016-09-04 21:24:07 -0400
commit63a4201541df77afcf71fffb67516f40a8c169ba (patch)
tree74556c984a72d8129fbd9b87680e2632dc8898f0 /engines/xeen
parent6dc1551d7db3356868cb9402bcc9e9b75648f52b (diff)
downloadscummvm-rg350-63a4201541df77afcf71fffb67516f40a8c169ba.tar.gz
scummvm-rg350-63a4201541df77afcf71fffb67516f40a8c169ba.tar.bz2
scummvm-rg350-63a4201541df77afcf71fffb67516f40a8c169ba.zip
XEEN: Change a strncpy use to Common::strlcpy
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/character.cpp2
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())