mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Off by one error in checking max file name length.
This commit is contained in:
parent
0d18e004bb
commit
f2c819bf2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91945
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue