From aab6485d322cc71e37aa3ec525b832169831fc1a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 24 Jan 2010 11:57:10 +0000 Subject: Always memset the newly malloc'ed argument memory to 0 inside kFormat svn-id: r47498 --- engines/sci/engine/kstring.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'engines') 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 */ -- cgit v1.2.3