From 6eba4dd3632bfb2ae03a566c53a7ea66b7d90444 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 30 May 2016 13:40:23 +0200 Subject: PARALLACTION: More string safety --- engines/parallaction/parallaction_ns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/parallaction') diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp index 5fd6d87985..ccf7130eb8 100644 --- a/engines/parallaction/parallaction_ns.cpp +++ b/engines/parallaction/parallaction_ns.cpp @@ -352,8 +352,8 @@ void Parallaction_ns::changeLocation() { } char location[200]; - strcpy(location, _newLocationName.c_str()); - strcpy(_location._name, _newLocationName.c_str()); + Common::strlcpy(location, _newLocationName.c_str(), 200); + Common::strlcpy(_location._name, _newLocationName.c_str(), 100); debugC(1, kDebugExec, "changeLocation(%s)", location); -- cgit v1.2.3