Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/systat Use correct size when copying interrupt count...
details: https://anonhg.NetBSD.org/src/rev/8f0707b40ef2
branches: trunk
changeset: 551147:8f0707b40ef2
user: dsl <dsl%NetBSD.org@localhost>
date: Sat Aug 30 12:57:03 2003 +0000
description:
Use correct size when copying interrupt counters.
Fixes second part of bin/10095 (first part fixed in rev 1.25)
diffstat:
usr.bin/systat/vmstat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 30971a155b5c -r 8f0707b40ef2 usr.bin/systat/vmstat.c
--- a/usr.bin/systat/vmstat.c Sat Aug 30 12:48:11 2003 +0000
+++ b/usr.bin/systat/vmstat.c Sat Aug 30 12:57:03 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.53 2003/08/07 11:16:01 agc Exp $ */
+/* $NetBSD: vmstat.c,v 1.54 2003/08/30 12:57:03 dsl Exp $ */
/*-
* Copyright (c) 1983, 1989, 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
-__RCSID("$NetBSD: vmstat.c,v 1.53 2003/08/07 11:16:01 agc Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.54 2003/08/30 12:57:03 dsl Exp $");
#endif /* not lint */
/*
@@ -772,7 +772,7 @@
intrcnt = to->intrcnt;
evcnt = to->evcnt;
*to = *from;
- memmove(to->intrcnt = intrcnt, from->intrcnt, nintr * sizeof (int));
+ memmove(to->intrcnt = intrcnt, from->intrcnt, nintr * sizeof *intrcnt);
memmove(to->evcnt = evcnt, from->evcnt, nevcnt * sizeof *evcnt);
}
Home |
Main Index |
Thread Index |
Old Index