aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-30 13:40:23 +0200
committerEugene Sandulenko2016-05-30 19:32:49 +0200
commit6eba4dd3632bfb2ae03a566c53a7ea66b7d90444 (patch)
tree53541c491237c391551f70a5c53ad44ccc7daff6 /engines/parallaction
parent1fc54e0086f6d5de6b85f5be46de8a8068f4046c (diff)
downloadscummvm-rg350-6eba4dd3632bfb2ae03a566c53a7ea66b7d90444.tar.gz
scummvm-rg350-6eba4dd3632bfb2ae03a566c53a7ea66b7d90444.tar.bz2
scummvm-rg350-6eba4dd3632bfb2ae03a566c53a7ea66b7d90444.zip
PARALLACTION: More string safety
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/parallaction_ns.cpp4
1 files changed, 2 insertions, 2 deletions
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);