PERFORCE change 164313 for review

Gabor Pali pgj at FreeBSD.org
Sun Jun 14 00:31:35 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=164313

Change 164313 by pgj at petymeg-current on 2009/06/14 00:30:39

	Fix display of addresses

Affected files ...

.. //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/inet.c#15 edit

Differences ...

==== //depot/projects/soc2009/pgj_libstat/src/usr.bin/netstat/inet.c#15 (text+ko) ====

@@ -930,10 +930,10 @@
 	char line[80], *cp;
 
 	/* XXX: Respect numeric for getting name. */
-	sprintf(line, "%.*s", Wflag ? 39 : (Aflag && !numeric) ? 12 : 16,
+	sprintf(line, "%.*s.", Wflag ? 39 : (Aflag && !numeric) ? 12 : 16,
 	    netstat_at_get_name(atp));
 	cp = index(line, '\0');
 	sprintf(cp, "%.15s ", netstat_at_get_portname(atp));
 	width = Wflag ? 45 : Aflag ? 18 : 22;
-	printf("%-*.*s", width, width, line);
+	printf("%-*.*s ", width, width, line);
 }


More information about the p4-projects mailing list