Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2014 20:50:00 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269097 - head/tools/test/netfibs
Message-ID:  <201407252050.s6PKo0eT061578@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Jul 25 20:49:59 2014
New Revision: 269097
URL: http://svnweb.freebsd.org/changeset/base/269097

Log:
  Use the right length.
  
  Submitted by:	Sascha Wildner
  MFC after:	2 weeks

Modified:
  head/tools/test/netfibs/reflect.c

Modified: head/tools/test/netfibs/reflect.c
==============================================================================
--- head/tools/test/netfibs/reflect.c	Fri Jul 25 20:44:04 2014	(r269096)
+++ head/tools/test/netfibs/reflect.c	Fri Jul 25 20:49:59 2014	(r269097)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407252050.s6PKo0eT061578>