Use the right length.

Submitted by:	Sascha Wildner
MFC after:	2 weeks
This commit is contained in:
Xin LI 2014-07-25 20:49:59 +00:00
parent 66d8df9dfc
commit 81e6c8e706

View File

@ -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) {