diff options
author | Bertrand Augereau | 2011-11-15 15:57:54 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-15 15:57:54 +0100 |
commit | 9c9b7e5a2c3016b5609cdfb4137108060eb95673 (patch) | |
tree | a59e1adbeafc3f0c00b6410c014c364924fad5bc /engines | |
parent | 11ae1d594044051a0c6d19bf57dcec14904157b6 (diff) | |
download | scummvm-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.cpp | 6 |
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; } |