IP addresses can be up to 15 characters long, not 12.
PR: 50904
This commit is contained in:
parent
2f4f42d484
commit
90e0c23cb9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113854
@ -65,10 +65,10 @@ main(void)
|
||||
xp->pr_version != XPRISON_VERSION)
|
||||
errx(1, "Kernel and userland out of sync");
|
||||
|
||||
printf(" JID IP Address Hostname Path\n");
|
||||
printf(" JID IP Address Hostname Path\n");
|
||||
for (i = 0; i < len / sizeof(*xp); i++) {
|
||||
in.s_addr = ntohl(xp->pr_ip);
|
||||
printf("%6d %-12.12s %-29.29s %.77s\n",
|
||||
printf("%6d %-15.15s %-29.29s %.74s\n",
|
||||
xp->pr_id, inet_ntoa(in), xp->pr_host, xp->pr_path);
|
||||
xp++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user