From 16490ab64e68770860fb1607a36a01d966c7d128 Mon Sep 17 00:00:00 2001 From: Lars Skovlund Date: Mon, 1 Feb 2010 16:58:17 +0000 Subject: Fix bug in kString(Printf) svn-id: r47798 --- engines/sci/engine/kernel32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index 31ea2ac1df..7a44a145bf 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -618,7 +618,7 @@ reg_t kString(EngineState *s, int argc, reg_t *argv) { reg_t *adjustedArgs = new reg_t[argc]; adjustedArgs[0] = stringHandle; - memcpy(&adjustedArgs[1], argv + 1, argc - 1); + memcpy(&adjustedArgs[1], argv + 1, (argc - 1) * sizeof(reg_t)); kFormat(s, argc, adjustedArgs); delete[] adjustedArgs; -- cgit v1.2.3