summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath2000-09-18 09:52:03 +0000
committerGlenn L McGrath2000-09-18 09:52:03 +0000
commit38c8551cf23b1740c7573e14466993af3f3cb775 (patch)
treef20c3b8fae911d28303cd94632686da371dea335
parent63dde9d4ce1a03007b183d75a396e22a8e9d34ca (diff)
downloadbusybox-38c8551cf23b1740c7573e14466993af3f3cb775.zip
busybox-38c8551cf23b1740c7573e14466993af3f3cb775.tar.gz
Path count was out by one, fixed it
-rw-r--r--findutils/which.c2
-rw-r--r--which.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/findutils/which.c b/findutils/which.c
index dc162dc..7df2557 100644
--- a/findutils/which.c
+++ b/findutils/which.c
@@ -28,7 +28,7 @@ extern int which_main(int argc, char **argv)
{
char *path_list, *path_n;
struct stat filestat;
- int i, count=0;
+ int i, count=1;
if (argc <= 1 || **(argv + 1) == '-')
usage(which_usage);
diff --git a/which.c b/which.c
index dc162dc..7df2557 100644
--- a/which.c
+++ b/which.c
@@ -28,7 +28,7 @@ extern int which_main(int argc, char **argv)
{
char *path_list, *path_n;
struct stat filestat;
- int i, count=0;
+ int i, count=1;
if (argc <= 1 || **(argv + 1) == '-')
usage(which_usage);