diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-13 02:46:14 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-13 02:46:14 +0000 |
commit | 9f559aa7068b38ba510640873a58953e94139248 (patch) | |
tree | 5b967e1d873ff6eff8296bf9fda73825f0c55884 /procps | |
parent | 033cbe20a6a0389007a333a4fdf1dc87d8eb368e (diff) | |
download | busybox-w32-9f559aa7068b38ba510640873a58953e94139248.tar.gz busybox-w32-9f559aa7068b38ba510640873a58953e94139248.tar.bz2 busybox-w32-9f559aa7068b38ba510640873a58953e94139248.zip |
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.
git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'procps')
-rw-r--r-- | procps/ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c index ae33e3262..a326bc546 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -229,7 +229,7 @@ extern int ps_main(int argc, char **argv) | |||
229 | * some new processes start up while we wait. The kernel will | 229 | * some new processes start up while we wait. The kernel will |
230 | * just ignore any extras if we give it too many, and will trunc. | 230 | * just ignore any extras if we give it too many, and will trunc. |
231 | * the list if we give it too few. */ | 231 | * the list if we give it too few. */ |
232 | pid_array = (pid_t*) calloc( num_pids+10, sizeof(pid_t)); | 232 | pid_array = (pid_t*) xcalloc( num_pids+10, sizeof(pid_t)); |
233 | pid_array[0] = num_pids+10; | 233 | pid_array[0] = num_pids+10; |
234 | 234 | ||
235 | /* Now grab the pid list */ | 235 | /* Now grab the pid list */ |