]> The Tcpdump Group git mirrors - libpcap/blobdiff - bpf_image.c
Use pcap_snprintf() instead of snprintf().
[libpcap] / bpf_image.c
index a7beb1f4ee46b0d11a622780ab82965d62692ef9..01ec536dfd622f38fe36bde9853cb719c4199d43 100644 (file)
@@ -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);
        }