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",
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to