diff options
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/seg_manager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/engine/seg_manager.cpp b/engines/sci/engine/seg_manager.cpp index 55084b68ae..b02ed5083f 100644 --- a/engines/sci/engine/seg_manager.cpp +++ b/engines/sci/engine/seg_manager.cpp @@ -648,6 +648,8 @@ void SegManager::strncpy(reg_t dest, const char* src, size_t n) { if (!src[i]) break; } + // Put an ending NUL to terminate the string + setChar(dest_r, n, 0); } } |