diff options
author | Luiz Otavio O Souza <loos@FreeBSD.org> | 2015-05-17 15:12:55 +0000 |
---|---|---|
committer | Luiz Otavio O Souza <loos@FreeBSD.org> | 2015-05-17 15:12:55 +0000 |
commit | 587b51331a4249a8eb77645d49df69a63d0b4afb (patch) | |
tree | 6eef07c8021237badbada0945dea58507be98d0d /usr.bin | |
parent | 81fdad5c0e278948551143474fd40925fcd40505 (diff) | |
download | src-test2-587b51331a4249a8eb77645d49df69a63d0b4afb.tar.gz src-test2-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')
-rw-r--r-- | usr.bin/netstat/route.c | 2 |
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", |