From 017c240336a375aebd52ec30cf341a207f1c12a4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 16 Oct 2018 00:15:38 -0700 Subject: Provide out own strlcpy() and strlcat() routines if necessary. We now depend on the *full* semantics of those routines, including the return value being usable for truncation checks. If we're building for a UN*X that has them, define pcap_strl{cpy,cat} to be strl{cpy,cat}. If we're building for Windows using MSVC, define pcap_strl{cpy,cat}, not strl{cpy,cat}. Otherwise, build our won versions of pcap_strl{cpy,cat} from BSD-derived source code. --- pcap-dag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap-dag.c') diff --git a/pcap-dag.c b/pcap-dag.c index d992a493..91965bcb 100644 --- a/pcap-dag.c +++ b/pcap-dag.c @@ -728,7 +728,7 @@ dag_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user) static int dag_inject(pcap_t *p, const void *buf _U_, int size _U_) { - strlcpy(p->errbuf, "Sending packets isn't supported on DAG cards", + pcap_strlcpy(p->errbuf, "Sending packets isn't supported on DAG cards", PCAP_ERRBUF_SIZE); return (-1); } -- cgit v1.2.1