From 8a3b57803fe94f16bd3d89fae4d117555b87e21f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 4 May 2016 23:57:34 +0200 Subject: PARALLACTION: Use Common::strlcpy instead of strncpy as suggested by LordHoto --- engines/parallaction/parallaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/parallaction/parallaction.cpp') 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++; -- cgit v1.2.3