MAXPATHLEN contains the trailing NUL.

This commit is contained in:
Warner Losh 2001-03-01 06:00:22 +00:00
parent 167ea27b4f
commit 77892acd6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73261
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ main(argc, argv)
struct exec exec;
int ch, cnt, efd, fd, sflag, uid;
char *binfile, *corefile;
char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN + 1];
char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN];
int is_aout;
sflag = 0;

View File

@ -100,7 +100,7 @@ main(argc, argv)
struct exec exec;
int ch, cnt, efd, fd, sflag, uid;
char *binfile, *corefile;
char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN + 1];
char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN];
int is_aout;
sflag = 0;