Project

General

Profile

Actions

Bug #144

closed

sockstat display glitch with IPv6

Added by fgudin almost 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

('[patch]' removed from Subject line: issue tracker doesn't like it)

On 13-04-2006, Francis GUDIN <> wrote:

diff r 5e7796ecf9a8 usr.bin/sockstat/sockstat.c
--
a/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.

Actions #1

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
&lt;&gt;
Actions

Also available in: Atom PDF