diff options
author | 2002-08-12 00:42:56 +0000 | |
---|---|---|
committer | 2002-08-12 00:42:56 +0000 | |
commit | bb098db64ef14c5423a62bb1ac363d38c6d34323 (patch) | |
tree | f1e5b178ba3236cd7f19bbe8142396e0d65458ba /lib/libpcap | |
parent | During prompts on sun4 class machines, disable local echo to prevent (diff) | |
download | wireguard-openbsd-bb098db64ef14c5423a62bb1ac363d38c6d34323.tar.xz wireguard-openbsd-bb098db64ef14c5423a62bb1ac363d38c6d34323.zip |
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'lib/libpcap')
-rw-r--r-- | lib/libpcap/optimize.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/optimize.c b/lib/libpcap/optimize.c index 356f65af653..832e183d233 100644 --- a/lib/libpcap/optimize.c +++ b/lib/libpcap/optimize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: optimize.c,v 1.8 2002/07/09 17:03:00 provos Exp $ */ +/* $OpenBSD: optimize.c,v 1.9 2002/08/12 00:42:56 aaron Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996 @@ -24,7 +24,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/lib/libpcap/optimize.c,v 1.8 2002/07/09 17:03:00 provos Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/lib/libpcap/optimize.c,v 1.9 2002/08/12 00:42:56 aaron Exp $ (LBL)"; #endif #include <sys/types.h> @@ -1926,7 +1926,7 @@ convert_code_r(p) /* generate offset[] for convenience */ if (slen) { - offset = (struct slist **)calloc(sizeof(struct slist *), slen); + offset = (struct slist **)calloc(slen, sizeof(struct slist *)); if (!offset) { bpf_error("not enough core"); /*NOTREACHED*/ |