aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-15 15:57:54 +0100
committerBertrand Augereau2011-11-15 15:57:54 +0100
commit9c9b7e5a2c3016b5609cdfb4137108060eb95673 (patch)
treea59e1adbeafc3f0c00b6410c014c364924fad5bc /engines
parent11ae1d594044051a0c6d19bf57dcec14904157b6 (diff)
downloadscummvm-rg350-9c9b7e5a2c3016b5609cdfb4137108060eb95673.tar.gz
scummvm-rg350-9c9b7e5a2c3016b5609cdfb4137108060eb95673.tar.bz2
scummvm-rg350-9c9b7e5a2c3016b5609cdfb4137108060eb95673.zip
DREAMWEB: crt functions
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp
index 5e822cafba..d887f1c564 100644
--- a/engines/dreamweb/object.cpp
+++ b/engines/dreamweb/object.cpp
@@ -252,9 +252,9 @@ void DreamGenContext::transfertext() {
const char *src = (const char *)segRef(data.word(kFreedesc)).ptr(kFreetext + srcOffset, 0);
char *dst = (char *)segRef(data.word(kExtras)).ptr(kExtext + data.word(kExtextpos), 0);
- strcpy(dst, src);
-
- data.word(kExtextpos) += strlen(src) + 1;
+ size_t len = strlen(src);
+ memcpy(dst, src, len + 1);
+ data.word(kExtextpos) += len + 1;
}