Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165885407
D53212.id164584.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
351 B
Referenced Files
None
Subscribers
None
D53212.id164584.diff
View Options
diff --git a/usr.bin/sockstat/main.c b/usr.bin/sockstat/main.c
--- a/usr.bin/sockstat/main.c
+++ b/usr.bin/sockstat/main.c
@@ -1196,7 +1196,9 @@
first = true;
len = strlen(s->protoname);
- if (s->vflag & (INP_IPV4 | INP_IPV6))
+ if (s->vflag & INP_IPV4)
+ len += 1;
+ if (s->vflag & INP_IPV6)
len += 1;
cw->proto = MAX(cw->proto, len);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 11, 10:20 AM (17 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36481810
Default Alt Text
D53212.id164584.diff (351 B)
Attached To
Mode
D53212: sockstat: fix column length for PROTO
Attached
Detach File
Event Timeline
Log In to Comment