Bug #144
closedsockstat display glitch with IPv6
0%
Description
('[patch]' removed from Subject line: issue tracker doesn't like it)
On 13-04-2006, Francis GUDIN <fgudin@nerim.net> wrote:
diff
r 5e7796ecf9a8 usr.bin/sockstat/sockstat.ca/usr.bin/sockstat/sockstat.c Fri Mar 24 07:57:30 2006 0000
--
++ b/usr.bin/sockstat/sockstat.c Thu Apr 13 21:41:02 2006 0200@ -506,8 +506,9
@ display(void)
case AF_INET:
case AF_INET6:
pos += printaddr(s->family, &s->laddr);
- while (pos < 58)
while (pos < 57)
pos = xprintf(" ");
xprintf(" ");
^^^^^^^^^^^
This |||||||||||||
should be pos += xprintf(" ");
for correctness...
Sorry,
Francis.
Updated by dillon about 18 years ago
:...
:> + while (pos < 57)
:> pos += xprintf(" ");
:> + xprintf(" ");
:
: ^^^^^^^^^^^
:This |||||||||||||
:should be pos += xprintf(" ");
:for correctness...
:
:Sorry,
:
:Francis.
Committed!
-Matt
Matthew Dillon
<dillon@backplane.com>