aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-24 11:57:10 +0000
committerFilippos Karapetis2010-01-24 11:57:10 +0000
commitaab6485d322cc71e37aa3ec525b832169831fc1a (patch)
tree8ae30984d8898186655326bdd950cd29de9f6206 /engines
parentbab94d58ba2a91c647c17a88e4ca3928ebe838b4 (diff)
downloadscummvm-rg350-aab6485d322cc71e37aa3ec525b832169831fc1a.tar.gz
scummvm-rg350-aab6485d322cc71e37aa3ec525b832169831fc1a.tar.bz2
scummvm-rg350-aab6485d322cc71e37aa3ec525b832169831fc1a.zip
Always memset the newly malloc'ed argument memory to 0 inside kFormat
svn-id: r47498
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kstring.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index 03b44f4b4e..42ca0cc374 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -213,9 +213,7 @@ reg_t kFormat(EngineState *s, int argc, reg_t *argv) {
arguments = (uint16 *)malloc(sizeof(uint16) * argc);
-#ifdef SATISFY_PURIFY
memset(arguments, 0, sizeof(uint16) * argc);
-#endif
for (i = startarg; i < argc; i++)
arguments[i-startarg] = argv[i].toUint16(); /* Parameters are copied to prevent overwriting */