diff options
author | 2007-09-01 19:32:19 +0000 | |
---|---|---|
committer | 2007-09-01 19:32:19 +0000 | |
commit | c72232dbcd0ce248923eb0630db8082bc9509eb7 (patch) | |
tree | b2969ab2eebdf88c3716dc791595b384572e0a1b /usr.bin/systat/vmstat.c | |
parent | Correct the backwards ethernet address that some NVidia MACs have. (diff) | |
download | wireguard-openbsd-c72232dbcd0ce248923eb0630db8082bc9509eb7.tar.xz wireguard-openbsd-c72232dbcd0ce248923eb0630db8082bc9509eb7.zip |
malloc(n * m) -> calloc(n, m); from zinovik
Diffstat (limited to 'usr.bin/systat/vmstat.c')
-rw-r--r-- | usr.bin/systat/vmstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index bb33c675698..c79b7c7f5ac 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmstat.c,v 1.62 2007/02/25 18:21:24 deraadt Exp $ */ +/* $OpenBSD: vmstat.c,v 1.63 2007/09/01 19:32:19 deraadt Exp $ */ /* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif -static char rcsid[] = "$OpenBSD: vmstat.c,v 1.62 2007/02/25 18:21:24 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: vmstat.c,v 1.63 2007/09/01 19:32:19 deraadt Exp $"; #endif /* not lint */ /* @@ -604,7 +604,7 @@ static void allocinfo(struct Info *s) { - s->intrcnt = (u_quad_t *) malloc(nintr * sizeof(u_quad_t)); + s->intrcnt = (u_quad_t *) calloc(nintr, sizeof(u_quad_t)); if (s->intrcnt == NULL) errx(2, "out of memory"); } |