X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/3299e855cb1cf7b6426d70e52cc51a022b9d9141..7d787482040aa327ef2345eca2e9f980ce76cc28:/gencode.c diff --git a/gencode.c b/gencode.c index 69dbaa39..b7a3b4e9 100644 --- a/gencode.c +++ b/gencode.c @@ -734,7 +734,8 @@ pcap_compile(pcap_t *p, struct bpf_program *program, } if (pcap_lex_init(&scanner) != 0) - bpf_error(&cstate, "can't initialize scanner: %s", pcap_strerror(errno)); + pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, + errno, "can't initialize scanner"); in_buffer = pcap__scan_string(xbuf ? xbuf : "", scanner); /*