[svn] gpgme - r1441 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Tue Dec 15 02:01:40 CET 2009
Author: marcus
Date: 2009-12-15 02:01:40 +0100 (Tue, 15 Dec 2009)
New Revision: 1441
Modified:
trunk/src/ChangeLog
trunk/src/assuan-support.c
Log:
2009-12-15 Marcus Brinkmann <marcus at g10code.de>
* assuan-support.c (my_spawn): Calloc, not malloc, the fd_items.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2009-12-10 09:49:47 UTC (rev 1440)
+++ trunk/src/ChangeLog 2009-12-15 01:01:40 UTC (rev 1441)
@@ -1,3 +1,7 @@
+2009-12-15 Marcus Brinkmann <marcus at g10code.de>
+
+ * assuan-support.c (my_spawn): Calloc, not malloc, the fd_items.
+
2009-12-10 Werner Koch <wk at g10code.com>
* debug.c (debug_init): Test on sgid process.
Modified: trunk/src/assuan-support.c
===================================================================
--- trunk/src/assuan-support.c 2009-12-10 09:49:47 UTC (rev 1440)
+++ trunk/src/assuan-support.c 2009-12-15 01:01:40 UTC (rev 1441)
@@ -130,7 +130,7 @@
}
/* fd_in, fd_out, terminator */
i += 3;
- fd_items = malloc (sizeof (struct spawn_fd_item_s) * i);
+ fd_items = calloc (i, sizeof (struct spawn_fd_item_s));
if (! fd_items)
return -1;
i = 0;
More information about the Gnupg-commits
mailing list