mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Use the right length.
Submitted by: Sascha Wildner MFC after: 2 weeks
This commit is contained in:
parent
66d8df9dfc
commit
81e6c8e706
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269097
@ -94,7 +94,7 @@ reflect_conn(int s, char *buf, size_t buflen, ssize_t l, struct sockaddr *sa,
|
||||
fprintf(stderr, "<< %s: %s\n", testcase, buf);
|
||||
|
||||
if (reflectfib != (u_int)-1)
|
||||
l = snprintf(buf, sizeof(buf), "FIB %u\n", reflectfib);
|
||||
l = snprintf(buf, buflen, "FIB %u\n", reflectfib);
|
||||
|
||||
/* If debug is on, log. */
|
||||
if (debug > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user