svn commit: r283028 - head/usr.bin/netstat

Luiz Otavio O Souza loos at FreeBSD.org
Sun May 17 15:12:56 UTC 2015


Author: loos
Date: Sun May 17 15:12:55 2015
New Revision: 283028
URL: https://svnweb.freebsd.org/changeset/base/283028

Log:
  Adjust the string format to match the actual number of arguments.
  
  This fix a segmentation fault on ARM when netstat -r is used together with
  -W.
  
  This issue was introduced in r279122.

Modified:
  head/usr.bin/netstat/route.c

Modified: head/usr.bin/netstat/route.c
==============================================================================
--- head/usr.bin/netstat/route.c	Sun May 17 04:17:08 2015	(r283027)
+++ head/usr.bin/netstat/route.c	Sun May 17 15:12:55 2015	(r283028)
@@ -236,7 +236,7 @@ pr_rthdr(int af1)
 		xo_emit("{T:/%-8.8s} ","Address");
 	if (Wflag) {
 		xo_emit("{T:/%-*.*s} {T:/%-*.*s} {T:/%-*.*s} {T:/%*.*s} "
-		    "{T:/%*.*s} {T:/%*.*s} {T:/%*.*s} {T:/%*s}\n",
+		    "{T:/%*.*s} {T:/%*.*s} {T:/%*s}\n",
 			wid_dst,	wid_dst,	"Destination",
 			wid_gw,		wid_gw,		"Gateway",
 			wid_flags,	wid_flags,	"Flags",


More information about the svn-src-all mailing list