aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat/route.c
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2015-05-17 15:12:55 +0000
committerLuiz Otavio O Souza <loos@FreeBSD.org>2015-05-17 15:12:55 +0000
commit587b51331a4249a8eb77645d49df69a63d0b4afb (patch)
tree6eef07c8021237badbada0945dea58507be98d0d /usr.bin/netstat/route.c
parent81fdad5c0e278948551143474fd40925fcd40505 (diff)
downloadsrc-587b51331a4249a8eb77645d49df69a63d0b4afb.tar.gz
src-587b51331a4249a8eb77645d49df69a63d0b4afb.zip
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.
Notes
Notes: svn path=/head/; revision=283028
Diffstat (limited to 'usr.bin/netstat/route.c')
-rw-r--r--usr.bin/netstat/route.c2
1 files changed, 1 insertions, 1 deletions
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",