diff options
author | dt <dt@FreeBSD.org> | 1999-05-02 17:44:16 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-05-02 17:44:16 +0000 |
commit | 528b186dfec302d92043147414c6279948075cf6 (patch) | |
tree | fe36045b65fcb7deea91e81bfa3f19ab13e4a530 /usr.sbin | |
parent | 1c84deb9cadf1860efccf05ca85cbd929b534e06 (diff) | |
download | FreeBSD-src-528b186dfec302d92043147414c6279948075cf6.zip FreeBSD-src-528b186dfec302d92043147414c6279948075cf6.tar.gz |
Little fix in previous: watch NUL-termination.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index fd74b54..2428754 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #endif static const char rcsid[] = - "$Id: syslogd.c,v 1.47 1999/04/30 12:51:20 des Exp $"; + "$Id: syslogd.c,v 1.48 1999/05/02 12:47:09 dt Exp $"; #endif /* not lint */ /* @@ -608,7 +608,7 @@ readklog() l = 0; } if (l > 0) - memmove(line, p, l); + memmove(line, p, l + 1); } if (l > 0) printsys(line); |