svn commit: r269737 - stable/10/tools/test/netfibs

Xin LI delphij at FreeBSD.org
Fri Aug 8 19:36:40 UTC 2014


Author: delphij
Date: Fri Aug  8 19:36:40 2014
New Revision: 269737
URL: http://svnweb.freebsd.org/changeset/base/269737

Log:
  MFC r269097:
  
  Use the right length.

Modified:
  stable/10/tools/test/netfibs/reflect.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/tools/test/netfibs/reflect.c
==============================================================================
--- stable/10/tools/test/netfibs/reflect.c	Fri Aug  8 19:14:49 2014	(r269736)
+++ stable/10/tools/test/netfibs/reflect.c	Fri Aug  8 19:36:40 2014	(r269737)
@@ -94,7 +94,7 @@ reflect_conn(int s, char *buf, size_t bu
 		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) {


More information about the svn-src-all mailing list