Off by one error in checking max file name length.

This commit is contained in:
wosch 2002-03-09 15:30:42 +00:00
parent be9ab92241
commit 3adb054e5a

View File

@ -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;