diff options
author | Filippos Karapetis | 2010-01-24 11:57:10 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-01-24 11:57:10 +0000 |
commit | aab6485d322cc71e37aa3ec525b832169831fc1a (patch) | |
tree | 8ae30984d8898186655326bdd950cd29de9f6206 /engines/sci/engine/kstring.cpp | |
parent | bab94d58ba2a91c647c17a88e4ca3928ebe838b4 (diff) | |
download | scummvm-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/sci/engine/kstring.cpp')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 2 |
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 */ |