X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/5ff25beec7ad7fb229b943ecb86fe55bcad531c4..131f5a8b1cb158788f41b5726a5f58e62ae74823:/bpf_image.c diff --git a/bpf_image.c b/bpf_image.c index a7beb1f4..01ec536d 100644 --- a/bpf_image.c +++ b/bpf_image.c @@ -306,13 +306,13 @@ bpf_image(p, n) fmt = ""; break; } - (void)snprintf(operand, sizeof operand, fmt, v); + (void)pcap_snprintf(operand, sizeof operand, fmt, v); if (BPF_CLASS(p->code) == BPF_JMP && BPF_OP(p->code) != BPF_JA) { - (void)snprintf(image, sizeof image, + (void)pcap_snprintf(image, sizeof image, "(%03d) %-8s %-16s jt %d\tjf %d", n, op, operand, n + 1 + p->jt, n + 1 + p->jf); } else { - (void)snprintf(image, sizeof image, + (void)pcap_snprintf(image, sizeof image, "(%03d) %-8s %s", n, op, operand); }