gnome-keyring r1501 - in trunk: . egg



Author: nnielsen
Date: Sat Feb  7 17:29:55 2009
New Revision: 1501
URL: http://svn.gnome.org/viewvc/gnome-keyring?rev=1501&view=rev

Log:
Fix problems with clearing out entire memory block when allocating
memory, and then reallocating it.

Modified:
   trunk/ChangeLog
   trunk/egg/egg-secure-memory.c

Modified: trunk/egg/egg-secure-memory.c
==============================================================================
--- trunk/egg/egg-secure-memory.c	(original)
+++ trunk/egg/egg-secure-memory.c	Sat Feb  7 17:29:55 2009
@@ -230,7 +230,7 @@
 	DEBUG_ALLOC ("gkr-secure-memory: allocated ", (unsigned long)size);
 
 	/* TODO: Fix suba, so always allocates zero */
-	memset (C2P(c2), 0, size);
+	memset (C2P(c2), 0, c2->size);
 	
 	return C2P(c2);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]