diff options
Diffstat (limited to 'usr.sbin/altq/altqstat/qdisc_rio.c')
-rw-r--r-- | usr.sbin/altq/altqstat/qdisc_rio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/altq/altqstat/qdisc_rio.c b/usr.sbin/altq/altqstat/qdisc_rio.c index a7193ff8aec..01d07d57b10 100644 --- a/usr.sbin/altq/altqstat/qdisc_rio.c +++ b/usr.sbin/altq/altqstat/qdisc_rio.c @@ -1,5 +1,5 @@ -/* $OpenBSD: qdisc_rio.c,v 1.1 2001/06/27 18:23:21 kjc Exp $ */ -/* $KAME: qdisc_rio.c,v 1.3 2001/05/17 08:01:47 kjc Exp $ */ +/* $OpenBSD: qdisc_rio.c,v 1.2 2001/08/16 12:59:43 kjc Exp $ */ +/* $KAME: qdisc_rio.c,v 1.4 2001/08/15 12:51:59 kjc Exp $ */ /* * Copyright (C) 1999-2000 * Sony Computer Science Laboratories, Inc. All rights reserved. @@ -58,7 +58,8 @@ rio_stat_loop(int fd, const char *ifname, int count, int interval) int cnt = count; bzero(&rio_stats, sizeof(rio_stats)); - strcpy(rio_stats.iface.rio_ifname, ifname); + strlcpy(rio_stats.iface.rio_ifname, ifname, + sizeof(rio_stats.iface.rio_ifname)); gettimeofday(&last_time, NULL); last_time.tv_sec -= interval; |