summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat/dkstats.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-04-22 22:28:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-04-22 22:28:38 +0000
commit45a11cd3aa105f982f6596b8ce2de492201a0284 (patch)
treed593b1f8cd5b0c7c7b9162d943218691c2de3932 /usr.bin/vmstat/dkstats.c
parent0d1fcf075c8c78e453714f95b0be269443fce0ff (diff)
Fix pasto in realloc portion of dkreadstats; from Pedro Martelletto
OK drahn@
Diffstat (limited to 'usr.bin/vmstat/dkstats.c')
-rw-r--r--usr.bin/vmstat/dkstats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vmstat/dkstats.c b/usr.bin/vmstat/dkstats.c
index 61ccfca56fb..2b58fe53304 100644
--- a/usr.bin/vmstat/dkstats.c
+++ b/usr.bin/vmstat/dkstats.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkstats.c,v 1.24 2004/02/15 02:45:47 tedu Exp $ */
+/* $OpenBSD: dkstats.c,v 1.25 2004/04/22 22:28:37 millert Exp $ */
/* $NetBSD: dkstats.c,v 1.1 1996/05/10 23:19:27 thorpej Exp $ */
/*
@@ -242,8 +242,8 @@ dkreadstats(void)
dk_ndrive * sizeof(*cur.dk_time));
last.dk_rxfer = realloc(last.dk_rxfer,
dk_ndrive * sizeof(*last.dk_rxfer));
- last.dk_wxfer = realloc(last.dk_rxfer,
- dk_ndrive * sizeof(*last.dk_rxfer));
+ last.dk_wxfer = realloc(last.dk_wxfer,
+ dk_ndrive * sizeof(*last.dk_wxfer));
last.dk_seek = realloc(last.dk_seek,
dk_ndrive * sizeof(*last.dk_seek));
last.dk_rbytes = realloc(last.dk_rbytes,