diff options
author | Matt Kraai <kraai@debian.org> | 2000-09-13 06:46:14 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-09-13 06:46:14 +0400 |
commit | 322ae93a5e0b78b65831f9fd87fd456eb84d21a1 (patch) | |
tree | 5b967e1d873ff6eff8296bf9fda73825f0c55884 /test.c | |
parent | b89075298edf0a471b9046b1f3c8a936e18ead20 (diff) |
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
segfaulting or handling errors the same way themselves.
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -555,9 +555,7 @@ static void initialize_group_array () { ngroups = getgroups(0, NULL); - if ((group_array = realloc(group_array, ngroups * sizeof(gid_t))) == NULL) - fatalError("Out of space\n"); - + group_array = xrealloc(group_array, ngroups * sizeof(gid_t)); getgroups(ngroups, group_array); } |