X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/14b709dd48cc512bd2c8f0b8ddb57c2ac1fbfc9e..20d9e08cde232247531358fd448ad845c89c7a16:/gencode.c diff --git a/gencode.c b/gencode.c index 670c9f0e..e5fccc3a 100644 --- a/gencode.c +++ b/gencode.c @@ -21,7 +21,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.105 2000-04-01 11:44:59 assar Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.106 2000-04-27 09:11:11 itojun Exp $ (LBL)"; #endif #include @@ -97,7 +97,8 @@ bpf_error(fmt, va_alist) va_start(ap); #endif if (bpf_pcap != NULL) - (void)vsprintf(pcap_geterr(bpf_pcap), fmt, ap); + (void)vsnprintf(pcap_geterr(bpf_pcap), PCAP_ERRBUF_SIZE, + fmt, ap); va_end(ap); longjmp(top_ctx, 1); /* NOTREACHED */