From a6bce8883c0f9dd7fee0eb03667f57b40b1d9dab Mon Sep 17 00:00:00 2001 From: fenner Date: Tue, 3 Apr 2001 04:18:09 +0000 Subject: Virgin import of tcpdump.org libpcap v0.6.2 --- contrib/libpcap/bpf_image.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'contrib/libpcap/bpf_image.c') diff --git a/contrib/libpcap/bpf_image.c b/contrib/libpcap/bpf_image.c index 1cee698..1e178bf 100644 --- a/contrib/libpcap/bpf_image.c +++ b/contrib/libpcap/bpf_image.c @@ -21,7 +21,11 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/bpf_image.c,v 1.22.1.1 1999/10/07 23:46:40 mcr Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/bpf_image.c,v 1.24 2000/07/11 00:37:04 assar Exp $ (LBL)"; +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" #endif #include @@ -32,7 +36,6 @@ static const char rcsid[] = #include "pcap-int.h" -#include "gnuc.h" #ifdef HAVE_OS_PROTO_H #include "os-proto.h" #endif @@ -277,8 +280,8 @@ bpf_image(p, n) fmt = ""; break; } - (void)sprintf(operand, fmt, v); - (void)sprintf(image, + (void)snprintf(operand, sizeof operand, fmt, v); + (void)snprintf(image, sizeof image, (BPF_CLASS(p->code) == BPF_JMP && BPF_OP(p->code) != BPF_JA) ? "(%03d) %-8s %-16s jt %d\tjf %d" -- cgit v1.1