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. --- findutils/which.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'findutils/which.c') diff --git a/findutils/which.c b/findutils/which.c index b3fd934d7..07c0e0d85 100644 --- a/findutils/which.c +++ b/findutils/which.c @@ -40,7 +40,7 @@ extern int which_main(int argc, char **argv) if (!path_list) path_list = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"; - path_parsed = malloc (strlen(path_list) + 1); + path_parsed = xmalloc (strlen(path_list) + 1); strcpy (path_parsed, path_list); /* Replace colons with zeros in path_parsed and count them */ -- cgit v1.2.3-55-g6feb