mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
The buffer passed to an sbuf drain callback is not necessarily
null-terminated, so don't assume that it is. Reported by: pho X-MFC-With: r291059
This commit is contained in:
parent
46e3a1113e
commit
1155462e3a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291217
@ -2987,7 +2987,7 @@ static int
|
||||
witness_output_drain(void *arg __unused, const char *data, int len)
|
||||
{
|
||||
|
||||
witness_output("%s", data);
|
||||
witness_output("%.*s", len, data);
|
||||
return (len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user