[Scummvm-cvs-logs] SF.net SVN: scummvm:[47498] scummvm/trunk/engines/sci/engine/kstring.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Jan 24 12:57:10 CET 2010


Revision: 47498
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47498&view=rev
Author:   thebluegr
Date:     2010-01-24 11:57:10 +0000 (Sun, 24 Jan 2010)

Log Message:
-----------
Always memset the newly malloc'ed argument memory to 0 inside kFormat

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kstring.cpp

Modified: scummvm/trunk/engines/sci/engine/kstring.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kstring.cpp	2010-01-24 11:54:55 UTC (rev 47497)
+++ scummvm/trunk/engines/sci/engine/kstring.cpp	2010-01-24 11:57:10 UTC (rev 47498)
@@ -213,9 +213,7 @@
 
 
 	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 */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list