[Scummvm-cvs-logs] scummvm master -> 9c9b7e5a2c3016b5609cdfb4137108060eb95673

tramboi bertrand_augereau at yahoo.fr
Tue Nov 15 15:59:04 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9c9b7e5a2c DREAMWEB: crt functions


Commit: 9c9b7e5a2c3016b5609cdfb4137108060eb95673
    https://github.com/scummvm/scummvm/commit/9c9b7e5a2c3016b5609cdfb4137108060eb95673
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-11-15T06:57:54-08:00

Commit Message:
DREAMWEB: crt functions

Changed paths:
    engines/dreamweb/object.cpp



diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp
index 5e822ca..d887f1c 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;
 }
 
 






More information about the Scummvm-git-logs mailing list