From b3a238a7508b51927c436f3beb1bf0dd556c44f3 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 12 May 2016 14:42:12 +0200 Subject: SKY: Safer string manipulation --- engines/sky/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp index 9f78234aba..99e6daa756 100644 --- a/engines/sky/control.cpp +++ b/engines/sky/control.cpp @@ -167,7 +167,7 @@ ControlStatus::~ControlStatus() { void ControlStatus::setToText(const char *newText) { char tmpLine[256]; - strcpy(tmpLine, newText); + Common::strlcpy(tmpLine, newText, 256); if (_textData) { _statusText->flushForRedraw(); free(_textData); -- cgit v1.2.3