Correct a last minute sizeof() bogon in my previous commit.
This commit is contained in:
parent
bcc9d95fe0
commit
7e2f1d04d8
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user