aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-12 14:42:12 +0200
committerEugene Sandulenko2016-05-12 14:42:12 +0200
commitb3a238a7508b51927c436f3beb1bf0dd556c44f3 (patch)
tree68ac1d40cf445b29dc5d913153c2c7f9e4801db3 /engines/sky
parentba8c9271cf548b9b578fa29b67c35db3fe652d06 (diff)
downloadscummvm-rg350-b3a238a7508b51927c436f3beb1bf0dd556c44f3.tar.gz
scummvm-rg350-b3a238a7508b51927c436f3beb1bf0dd556c44f3.tar.bz2
scummvm-rg350-b3a238a7508b51927c436f3beb1bf0dd556c44f3.zip
SKY: Safer string manipulation
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/control.cpp2
1 files changed, 1 insertions, 1 deletions
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);