aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-04 23:57:34 +0200
committerEugene Sandulenko2016-05-04 23:57:34 +0200
commit8a3b57803fe94f16bd3d89fae4d117555b87e21f (patch)
tree827e42184043ff0a8f8e4e2409eb5216037d8124 /engines/parallaction/parallaction.cpp
parentb8f288873bbcd54e7a984ccd9ae56e82e78aa631 (diff)
downloadscummvm-rg350-8a3b57803fe94f16bd3d89fae4d117555b87e21f.tar.gz
scummvm-rg350-8a3b57803fe94f16bd3d89fae4d117555b87e21f.tar.bz2
scummvm-rg350-8a3b57803fe94f16bd3d89fae4d117555b87e21f.zip
PARALLACTION: Use Common::strlcpy instead of strncpy as suggested by LordHoto
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r--engines/parallaction/parallaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp
index e11aeed0f0..bbe759dffe 100644
--- a/engines/parallaction/parallaction.cpp
+++ b/engines/parallaction/parallaction.cpp
@@ -210,7 +210,7 @@ void Parallaction::allocateLocationSlot(const char *name) {
error("No more location slots available. Please report this immediately to ScummVM team");
if (_currentLocationIndex == -1) {
- strncpy(_locationNames[_numLocations], name, 10);
+ Common::strlcpy(_locationNames[_numLocations], name, 10);
_currentLocationIndex = _numLocations;
_numLocations++;