svn commit: r311674 - stable/11/usr.bin/netstat
Hajimu UMEMOTO
ume at FreeBSD.org
Sun Jan 8 08:53:35 UTC 2017
Author: ume
Date: Sun Jan 8 08:53:34 2017
New Revision: 311674
URL: https://svnweb.freebsd.org/changeset/base/311674
Log:
MFC r311426:
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
Modified:
stable/11/usr.bin/netstat/inet6.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/netstat/inet6.c
==============================================================================
--- stable/11/usr.bin/netstat/inet6.c Sun Jan 8 08:52:53 2017 (r311673)
+++ stable/11/usr.bin/netstat/inet6.c Sun Jan 8 08:53:34 2017 (r311674)
@@ -1290,7 +1290,7 @@ inet6print(const char *container, struct
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);
More information about the svn-src-stable
mailing list