diff options
author | kris <kris@FreeBSD.org> | 2001-09-05 05:20:31 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-09-05 05:20:31 +0000 |
commit | e5416f84b08d311ea87bcf055adba5af1a79e5cb (patch) | |
tree | 70a31925b54f8276f5a6481c7eac07ce2caf00f8 /usr.sbin/syslogd | |
parent | 0e8186d4dc6ef54b4f3afecfa66902f98286bc1b (diff) | |
download | FreeBSD-src-e5416f84b08d311ea87bcf055adba5af1a79e5cb.zip FreeBSD-src-e5416f84b08d311ea87bcf055adba5af1a79e5cb.tar.gz |
Correct a last minute sizeof() bogon in my previous commit.
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 2a837aa..2046f01 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -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)); |