diff options
-rw-r--r-- | scumm/verbs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp index c5981a1f10..dbe39660fa 100644 --- a/scumm/verbs.cpp +++ b/scumm/verbs.cpp @@ -231,8 +231,8 @@ void Scumm::redrawV2Inventory() { // Prevent inventory entries from overflowing by truncating the text // after 144/8 = 18 chars byte msg[18 + 1]; - memcpy(msg, _messagePtr, 18), msg[18] = 0; + strncpy((char *)msg, (const char *)_messagePtr, 18); _messagePtr = msg; // Draw it |