mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
SKY: Safer string manipulation
This commit is contained in:
parent
ba8c9271cf
commit
b3a238a750
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user