diff options
Diffstat (limited to 'engines/parallaction/parser_ns.cpp')
-rw-r--r-- | engines/parallaction/parser_ns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp index 41ff74f0b4..ac5e7c7135 100644 --- a/engines/parallaction/parser_ns.cpp +++ b/engines/parallaction/parser_ns.cpp @@ -292,7 +292,7 @@ void LocationParser_ns::parseAnimation(AnimationList &list, char *name) { AnimationPtr a(new Animation); _zoneProg++; - strncpy(a->_name, name, ZONENAME_LENGTH); + Common::strlcpy(a->_name, name, ZONENAME_LENGTH); a->_flags |= kFlagsIsAnimation; list.push_front(AnimationPtr(a)); @@ -1312,7 +1312,7 @@ void LocationParser_ns::parseZone(ZoneList &list, char *name) { ZonePtr z(new Zone); _zoneProg++; - strncpy(z->_name, name, ZONENAME_LENGTH); + Common::strlcpy(z->_name, name, ZONENAME_LENGTH); ctxt.z = z; |