View | Details | Raw Unified | Return to bug 156768 | Differences between
and this patch

Collapse All | Expand All

(-)sockstat.c (-2 / +2 lines)
Lines 681-690 Link Here
681
		if ((pwd = getpwuid(xf->xf_uid)) == NULL)
681
		if ((pwd = getpwuid(xf->xf_uid)) == NULL)
682
			pos += xprintf("%lu ", (u_long)xf->xf_uid);
682
			pos += xprintf("%lu ", (u_long)xf->xf_uid);
683
		else
683
		else
684
			pos += xprintf("%s ", pwd->pw_name);
684
			pos += xprintf("%.8s ", pwd->pw_name);
685
		while (pos < 9)
685
		while (pos < 9)
686
			pos += xprintf(" ");
686
			pos += xprintf(" ");
687
		pos += xprintf("%.10s", getprocname(xf->xf_pid));
687
		pos += xprintf("%.10s ", getprocname(xf->xf_pid));
688
		while (pos < 20)
688
		while (pos < 20)
689
			pos += xprintf(" ");
689
			pos += xprintf(" ");
690
		pos += xprintf("%lu ", (u_long)xf->xf_pid);
690
		pos += xprintf("%lu ", (u_long)xf->xf_pid);

Return to bug 156768