Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 2009 00:31:34 GMT
From:      Gabor Pali <pgj@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 164313 for review
Message-ID:  <200906140031.n5E0VYgn099269@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164313

Change 164313 by pgj@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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906140031.n5E0VYgn099269>