mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Little fix in previous: watch NUL-termination.
This commit is contained in:
parent
96a3add7e9
commit
1b44fb0337
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46324
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user