Revision: 7192
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7192&view=rev
Author:   hofman
Date:     2011-03-28 17:17:36 +0000 (Mon, 28 Mar 2011)

Log Message:
-----------
use bzero to set stack buffer to zero

Modified Paths:
--------------
    trunk/NSString_SKExtensions.m

Modified: trunk/NSString_SKExtensions.m
===================================================================
--- trunk/NSString_SKExtensions.m       2011-03-28 12:37:26 UTC (rev 7191)
+++ trunk/NSString_SKExtensions.m       2011-03-28 17:17:36 UTC (rev 7192)
@@ -72,6 +72,7 @@
     if(length >= STACK_BUFFER_SIZE) {
         buffer = (UniChar *)CFAllocatorAllocate(allocator, length * 
sizeof(UniChar), 0);
     } else {
+        bzero(&stackBuffer, length * sizeof(UniChar));
         buffer = stackBuffer;
     }
     


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

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to