Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/usr.bin/sockstat Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/eb792a2e1a9d
branches:  netbsd-3
changeset: 577309:eb792a2e1a9d
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Oct 06 11:35:55 2005 +0000

description:
Pull up following revision(s) (requested by rpaulo in ticket #860):
        usr.bin/sockstat/sockstat.c: revision 1.6
Don't allow the command length to mess up the formatting

diffstat:

 usr.bin/sockstat/sockstat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e44a7903303e -r eb792a2e1a9d usr.bin/sockstat/sockstat.c
--- a/usr.bin/sockstat/sockstat.c       Thu Oct 06 11:35:47 2005 +0000
+++ b/usr.bin/sockstat/sockstat.c       Thu Oct 06 11:35:55 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockstat.c,v 1.4.2.1 2005/10/06 11:35:47 tron Exp $ */
+/*     $NetBSD: sockstat.c,v 1.4.2.2 2005/10/06 11:35:55 tron Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: sockstat.c,v 1.4.2.1 2005/10/06 11:35:47 tron Exp $");
+__RCSID("$NetBSD: sockstat.c,v 1.4.2.2 2005/10/06 11:35:55 tron Exp $");
 #endif
 
 #include <sys/param.h>
@@ -529,7 +529,7 @@
        else
                printf("%-8d ", (int)p->p_uid);
 
-       printf("%-10.*s ", (int)sizeof(p->p_comm), p->p_comm);
+       printf("%-10.10s ", p->p_comm);
        printf("%-5d ", (int)kf->ki_pid);
        printf("%2d ", (int)kf->ki_fd);
 



Home | Main Index | Thread Index | Old Index