Fix for rdar://problem/5978442: calloc(3)ing instead of malloc(3)ing.
--- branches/PR-5978442/launchd/src/liblaunch.c 2008-08-07 23:19:55 UTC (rev 23650)
+++ branches/PR-5978442/launchd/src/liblaunch.c 2008-08-13 01:41:23 UTC (rev 23651)
@@ -779,7 +779,7 @@
/* hack, see the above assert to verify "correctness" */
free(lh->sendbuf);
- lh->sendbuf = malloc(good_enough_size);
+ lh->sendbuf = calloc(1, good_enough_size);
free(lh->sendfds);
lh->sendfds = malloc(4 * 1024);