From 8ccc9441056f0b24d160b9d799b194b124f18274 Mon Sep 17 00:00:00 2001 From: bug1 Date: Mon, 18 Sep 2000 09:52:03 +0000 Subject: Path count was out by one, fixed it git-svn-id: svn://busybox.net/trunk/busybox@1064 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- findutils/which.c | 2 +- which.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/findutils/which.c b/findutils/which.c index dc162dca5..7df2557a3 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 dc162dca5..7df2557a3 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); -- cgit v1.2.3-55-g6feb