From 322ae93a5e0b78b65831f9fd87fd456eb84d21a1 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 13 Sep 2000 02:46:14 +0000 Subject: 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. --- ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ps.c') diff --git a/ps.c b/ps.c index ae33e3262..a326bc546 100644 --- a/ps.c +++ b/ps.c @@ -229,7 +229,7 @@ extern int ps_main(int argc, char **argv) * some new processes start up while we wait. The kernel will * just ignore any extras if we give it too many, and will trunc. * the list if we give it too few. */ - pid_array = (pid_t*) calloc( num_pids+10, sizeof(pid_t)); + pid_array = (pid_t*) xcalloc( num_pids+10, sizeof(pid_t)); pid_array[0] = num_pids+10; /* Now grab the pid list */ -- cgit v1.2.3