diff options
author | Lars Skovlund | 2010-02-01 16:58:17 +0000 |
---|---|---|
committer | Lars Skovlund | 2010-02-01 16:58:17 +0000 |
commit | 16490ab64e68770860fb1607a36a01d966c7d128 (patch) | |
tree | 0402642ef57e900cac2d06317777bf04899e30cc /engines/sci/engine/kernel32.cpp | |
parent | 7b34392aad1f7e20dd9f663c82c7ce284bebe38e (diff) | |
download | scummvm-rg350-16490ab64e68770860fb1607a36a01d966c7d128.tar.gz scummvm-rg350-16490ab64e68770860fb1607a36a01d966c7d128.tar.bz2 scummvm-rg350-16490ab64e68770860fb1607a36a01d966c7d128.zip |
Fix bug in kString(Printf)
svn-id: r47798
Diffstat (limited to 'engines/sci/engine/kernel32.cpp')
-rw-r--r-- | engines/sci/engine/kernel32.cpp | 2 |
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; |