Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2015 15:12:56 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283028 - head/usr.bin/netstat
Message-ID:  <201505171512.t4HFCuFs037117@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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",



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