diff options
-rw-r--r-- | engines/drascula/objects.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/drascula/objects.cpp b/engines/drascula/objects.cpp index 35dfd3162a..acc4bbf7ac 100644 --- a/engines/drascula/objects.cpp +++ b/engines/drascula/objects.cpp @@ -265,8 +265,9 @@ void DrasculaEngine::updateVisible() { } if (_roomNumber == 22 && flags[27] == 1) visible[3] = 0; - if (_roomNumber == 26 && flags[21] == 0) - strcpy(objName[2], _textmisc[0]); + if (_roomNumber == 26 && flags[21] == 0) { + strlcpy(objName[2], _textmisc[0], 20); + } if (_roomNumber == 26 && flags[18] == 1) visible[2] = 0; if (_roomNumber == 26 && flags[12] == 1) |