Don't read the byte at *argv[strlen(*argv) + 1].

PR:		71743
This commit is contained in:
David Schultz 2004-09-24 06:57:26 +00:00
parent af8b19780a
commit 7f5685bb49
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135718

View File

@ -147,7 +147,7 @@ build(char *path, mode_t omode)
else if (p[0] != '/')
continue;
*p = '\0';
if (p[1] == '\0')
if (!last && p[1] == '\0')
last = 1;
if (first) {
/*