diff options
Diffstat (limited to 'engines/sci/engine/segment.h')
-rw-r--r-- | engines/sci/engine/segment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h index 81be9332c2..7e2189ea68 100644 --- a/engines/sci/engine/segment.h +++ b/engines/sci/engine/segment.h @@ -804,7 +804,7 @@ public: while (*source != '\0' && *source != showChar && *source <= kWhitespaceBoundary) { ++source; } - strcpy((char *)target, (char *)source); + memmove(target, source, Common::strnlen((char *)source, _size - 1) + 1); } if (flags & kArrayTrimRight) { |