Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat Limit maximum owner name to appease gcc
details: https://anonhg.NetBSD.org/src/rev/6b08623f4f64
branches: trunk
changeset: 452268:6b08623f4f64
user: martin <martin%NetBSD.org@localhost>
date: Tue Jun 25 14:52:55 2019 +0000
description:
Limit maximum owner name to appease gcc
diffstat:
usr.bin/netstat/mbuf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r eff905f0ba06 -r 6b08623f4f64 usr.bin/netstat/mbuf.c
--- a/usr.bin/netstat/mbuf.c Tue Jun 25 13:07:48 2019 +0000
+++ b/usr.bin/netstat/mbuf.c Tue Jun 25 14:52:55 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mbuf.c,v 1.33 2015/07/28 19:46:42 christos Exp $ */
+/* $NetBSD: mbuf.c,v 1.34 2019/06/25 14:52:55 martin Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)mbuf.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: mbuf.c,v 1.33 2015/07/28 19:46:42 christos Exp $");
+__RCSID("$NetBSD: mbuf.c,v 1.34 2019/06/25 14:52:55 martin Exp $");
#endif
#endif /* not lint */
@@ -239,7 +239,7 @@
mo->mo_counter[MOWNER_COUNTER_CLUSTER_CLAIMS] ==
mo->mo_counter[MOWNER_COUNTER_CLUSTER_RELEASES])
continue;
- snprintf(buf, sizeof(buf), "%16s %-13s",
+ snprintf(buf, sizeof(buf), "%16.16s %-13s",
mo->mo_name, mo->mo_descr);
if ((lines % 24) == 0 || lines > 24) {
printf("%30s %-8s %10s %10s %10s\n",
Home |
Main Index |
Thread Index |
Old Index