svn commit: r311967 - stable/11/usr.bin/netstat

Xin LI delphij at FreeBSD.org
Thu Jan 12 08:12:12 UTC 2017


Author: delphij
Date: Thu Jan 12 08:12:11 2017
New Revision: 311967
URL: https://svnweb.freebsd.org/changeset/base/311967

Log:
  MFC r311762: Fix typo.

Modified:
  stable/11/usr.bin/netstat/route.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/netstat/route.c
==============================================================================
--- stable/11/usr.bin/netstat/route.c	Thu Jan 12 07:26:39 2017	(r311966)
+++ stable/11/usr.bin/netstat/route.c	Thu Jan 12 08:12:11 2017	(r311967)
@@ -494,7 +494,7 @@ fmt_sockaddr(struct sockaddr *sa, struct
 		cq = buf;
 		slim =  sa->sa_len + (u_char *) sa;
 		cqlim = cq + sizeof(buf) - sizeof(" ffff");
-		snprintf(cq, sizeof(cq), "(%d)", sa->sa_family);
+		snprintf(cq, sizeof(buf), "(%d)", sa->sa_family);
 		cq += strlen(cq);
 		while (s < slim && cq < cqlim) {
 			snprintf(cq, sizeof(" ff"), " %02x", *s++);


More information about the svn-src-stable mailing list