diff options
Diffstat (limited to 'usr.bin/which/which.c')
-rw-r--r-- | usr.bin/which/which.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/which/which.c b/usr.bin/which/which.c index f55871a..cea0ce6 100644 --- a/usr.bin/which/which.c +++ b/usr.bin/which/which.c @@ -86,7 +86,7 @@ main(int argc, char **argv) while (argc > 0) { memcpy(path, p, pathlen); - if (strlen(*argv) > FILENAME_MAX || + if (strlen(*argv) >= FILENAME_MAX || print_matches(path, *argv) == -1) status = EXIT_FAILURE; |