diff options
Diffstat (limited to 'which.c')
-rw-r--r-- | which.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |