Correct a last minute sizeof() bogon in my previous commit.

This commit is contained in:
Kris Kennaway 2001-09-05 05:20:31 +00:00
parent bcc9d95fe0
commit 7e2f1d04d8

View File

@ -1664,7 +1664,7 @@ cfline(line, f, prog, host)
f->f_type = F_CONSOLE;
else
f->f_type = F_TTY;
(void)strlcpy(f->f_un.f_fname, p + sizeof(_PATH_DEV - 1),
(void)strlcpy(f->f_un.f_fname, p + sizeof(_PATH_DEV) - 1,
sizeof(f->f_un.f_fname));
} else {
(void)strlcpy(f->f_un.f_fname, p, sizeof(f->f_un.f_fname));