From 6b2c2fe045365a47fa81ab8c4137d03dacbcfaae Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 19 Aug 2008 20:33:59 +0000 Subject: Pass the right pointer to bzero() when clearing cp_time. MFC after: 1 week --- usr.sbin/iostat/iostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/iostat') diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c index f1a0556..b349cd2 100644 --- a/usr.sbin/iostat/iostat.c +++ b/usr.sbin/iostat/iostat.c @@ -417,7 +417,7 @@ main(int argc, char **argv) if ((wflag > 0) && (cflag == 0)) count = -1; - bzero(&cur.cp_time, sizeof(cur.cp_time)); + bzero(cur.cp_time, sizeof(cur.cp_time)); cur.tk_nout = 0; cur.tk_nin = 0; -- cgit v1.1