summaryrefslogtreecommitdiff
path: root/usr.sbin/altq/altqstat/qdisc_cbq.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/altq/altqstat/qdisc_cbq.c')
-rw-r--r--usr.sbin/altq/altqstat/qdisc_cbq.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/altq/altqstat/qdisc_cbq.c b/usr.sbin/altq/altqstat/qdisc_cbq.c
index 7bf6b72d90a..4360cc169fe 100644
--- a/usr.sbin/altq/altqstat/qdisc_cbq.c
+++ b/usr.sbin/altq/altqstat/qdisc_cbq.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: qdisc_cbq.c,v 1.1 2001/06/27 18:23:20 kjc Exp $ */
-/* $KAME: qdisc_cbq.c,v 1.3 2000/12/29 06:39:27 kjc Exp $ */
+/* $OpenBSD: qdisc_cbq.c,v 1.2 2001/08/16 12:59:43 kjc Exp $ */
+/* $KAME: qdisc_cbq.c,v 1.4 2001/08/15 12:51:58 kjc Exp $ */
/*
* Copyright (C) 1999-2000
* Sony Computer Science Laboratories, Inc. All rights reserved.
@@ -68,7 +68,8 @@ cbq_stat_loop(int fd, const char *ifname, int count, int interval)
double flow_bps, sec;
int cnt = count;
- strcpy(get_stats.iface.cbq_ifacename, ifname);
+ strlcpy(get_stats.iface.cbq_ifacename, ifname,
+ sizeof(get_stats.iface.cbq_ifacename));
new = &stats1[0];
last = &stats2[0];
@@ -90,7 +91,7 @@ cbq_stat_loop(int fd, const char *ifname, int count, int interval)
if (sp->handle != clhandles[i]) {
quip_chandle2name(ifname, sp->handle,
- clnames[i]);
+ clnames[i], sizeof(clnames[0]));
clhandles[i] = sp->handle;
continue;
}