SKY: Safer string manipulation

This commit is contained in:
Eugene Sandulenko 2016-05-12 14:42:12 +02:00
parent ba8c9271cf
commit b3a238a750

View File

@ -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);