When displaying netstat details with libxo in JSON

or XML modes, the value conversion for tcp6 and udp6
port numbers drops last digit.

PR:		215682
MFC after:	3 days
This commit is contained in:
Hajimu UMEMOTO 2017-01-05 11:44:27 +00:00
parent 60c2226f89
commit f03f398cda
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311426

View File

@ -1290,7 +1290,7 @@ inet6print(const char *container, struct in6_addr *in6, int port,
xo_emit("{d:target/%-*.*s} ", width, width, line);
plen = strlen(cp) - 1;
plen = strlen(cp);
alen--;
xo_emit("{e:address/%*.*s}{e:port/%*.*s}", alen, alen, line, plen,
plen, cp);