From: itojun Date: Wed, 6 Sep 2000 07:40:03 +0000 (+0000) Subject: repair argument mismatch to malloc(). X-Git-Tag: libpcap-0.6.1~90 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/549c0b2c896e83af3f3560dd48c02659f4d084d6 repair argument mismatch to malloc(). From: Uwe Girlich To: Ethereal Development List Subject: [ethereal-dev] libpcap --- diff --git a/optimize.c b/optimize.c index b78ae709..c39f8992 100644 --- a/optimize.c +++ b/optimize.c @@ -22,7 +22,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/optimize.c,v 1.63 2000-07-11 00:37:05 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/optimize.c,v 1.64 2000-09-06 07:40:03 itojun Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -1867,7 +1867,7 @@ opt_init(root) */ maxval = 3 * max_stmts; vmap = (struct vmapinfo *)malloc(maxval * sizeof(*vmap)); - vnode_base = (struct valnode *)malloc(maxval * sizeof(*vmap)); + vnode_base = (struct valnode *)malloc(maxval * sizeof(*vnode_base)); } /*