aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-04 21:14:54 +0200
committerEugene Sandulenko2016-05-04 21:15:58 +0200
commit5cfbb176e793797d1345429f88d7efe4b733f98e (patch)
treee549ac7aef17c0d5e7174bd7816af7980e9fc9a5 /engines/parallaction/parallaction.cpp
parentd5b4f8ee7eb6c53d6cf68274a9aded3f99be7650 (diff)
downloadscummvm-rg350-5cfbb176e793797d1345429f88d7efe4b733f98e.tar.gz
scummvm-rg350-5cfbb176e793797d1345429f88d7efe4b733f98e.tar.bz2
scummvm-rg350-5cfbb176e793797d1345429f88d7efe4b733f98e.zip
PARALLACTION: Use strncpy
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 af898b2e20..e11aeed0f0 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) {
- strcpy(_locationNames[_numLocations], name);
+ strncpy(_locationNames[_numLocations], name, 10);
_currentLocationIndex = _numLocations;
_numLocations++;