mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
Off by one error in checking max file name length.
This commit is contained in:
parent
0d18e004bb
commit
f2c819bf2b
1 changed files with 1 additions and 1 deletions
|
|
@ -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