Revision: 23651 http://trac.macosforge.org/projects/launchd/changeset/23651 Author: dsorresso@apple.com Date: 2008-08-12 18:41:23 -0700 (Tue, 12 Aug 2008) Log Message: ----------- Fix for rdar://problem/5978442: calloc(3)ing instead of malloc(3)ing. Modified Paths: -------------- branches/PR-5978442/launchd/src/liblaunch.c Modified: branches/PR-5978442/launchd/src/liblaunch.c =================================================================== --- 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);
participants (1)
-
source_changes@macosforge.org