diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-18 09:52:03 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-18 09:52:03 +0000 |
commit | 8ccc9441056f0b24d160b9d799b194b124f18274 (patch) | |
tree | f20c3b8fae911d28303cd94632686da371dea335 | |
parent | 43cdbaf7283fe1774c163141520370706b02b36a (diff) | |
download | busybox-w32-8ccc9441056f0b24d160b9d799b194b124f18274.tar.gz busybox-w32-8ccc9441056f0b24d160b9d799b194b124f18274.tar.bz2 busybox-w32-8ccc9441056f0b24d160b9d799b194b124f18274.zip |
Path count was out by one, fixed it
git-svn-id: svn://busybox.net/trunk/busybox@1064 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | findutils/which.c | 2 | ||||
-rw-r--r-- | 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) | |||
28 | { | 28 | { |
29 | char *path_list, *path_n; | 29 | char *path_list, *path_n; |
30 | struct stat filestat; | 30 | struct stat filestat; |
31 | int i, count=0; | 31 | int i, count=1; |
32 | 32 | ||
33 | if (argc <= 1 || **(argv + 1) == '-') | 33 | if (argc <= 1 || **(argv + 1) == '-') |
34 | usage(which_usage); | 34 | usage(which_usage); |
@@ -28,7 +28,7 @@ extern int which_main(int argc, char **argv) | |||
28 | { | 28 | { |
29 | char *path_list, *path_n; | 29 | char *path_list, *path_n; |
30 | struct stat filestat; | 30 | struct stat filestat; |
31 | int i, count=0; | 31 | int i, count=1; |
32 | 32 | ||
33 | if (argc <= 1 || **(argv + 1) == '-') | 33 | if (argc <= 1 || **(argv + 1) == '-') |
34 | usage(which_usage); | 34 | usage(which_usage); |