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.
This commit is contained in:
parent
81fdad5c0e
commit
587b51331a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283028
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user