aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Skovlund2010-02-01 16:58:17 +0000
committerLars Skovlund2010-02-01 16:58:17 +0000
commit16490ab64e68770860fb1607a36a01d966c7d128 (patch)
tree0402642ef57e900cac2d06317777bf04899e30cc
parent7b34392aad1f7e20dd9f663c82c7ce284bebe38e (diff)
downloadscummvm-rg350-16490ab64e68770860fb1607a36a01d966c7d128.tar.gz
scummvm-rg350-16490ab64e68770860fb1607a36a01d966c7d128.tar.bz2
scummvm-rg350-16490ab64e68770860fb1607a36a01d966c7d128.zip
Fix bug in kString(Printf)
svn-id: r47798
-rw-r--r--engines/sci/engine/kernel32.cpp2
1 files changed, 1 insertions, 1 deletions
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;