aboutsummaryrefslogtreecommitdiff
path: root/which.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-13 02:46:14 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-09-13 02:46:14 +0000
commit9f559aa7068b38ba510640873a58953e94139248 (patch)
tree5b967e1d873ff6eff8296bf9fda73825f0c55884 /which.c
parent033cbe20a6a0389007a333a4fdf1dc87d8eb368e (diff)
downloadbusybox-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 '')
-rw-r--r--which.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/which.c b/which.c
index b3fd934d7..07c0e0d85 100644
--- a/which.c
+++ b/which.c
@@ -40,7 +40,7 @@ extern int which_main(int argc, char **argv)
40 if (!path_list) 40 if (!path_list)
41 path_list = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"; 41 path_list = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin";
42 42
43 path_parsed = malloc (strlen(path_list) + 1); 43 path_parsed = xmalloc (strlen(path_list) + 1);
44 strcpy (path_parsed, path_list); 44 strcpy (path_parsed, path_list);
45 45
46 /* Replace colons with zeros in path_parsed and count them */ 46 /* Replace colons with zeros in path_parsed and count them */