From 587b51331a4249a8eb77645d49df69a63d0b4afb Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Sun, 17 May 2015 15:12:55 +0000 Subject: [PATCH] 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. --- usr.bin/netstat/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 676f6164d82c..675d3796f339 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -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",