summaryrefslogtreecommitdiff
path: root/pcap-libdlpi.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-10-16 00:15:38 -0700
committerGuy Harris <guy@alum.mit.edu>2018-10-16 00:15:38 -0700
commit017c240336a375aebd52ec30cf341a207f1c12a4 (patch)
tree51018597dbbf7efcfeb940e14f0a7bd58ea01095 /pcap-libdlpi.c
parented63d72f6b9bddab83fc35a957a6a9ff02501d0a (diff)
downloadlibpcap-017c240336a375aebd52ec30cf341a207f1c12a4.tar.gz
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.
Diffstat (limited to 'pcap-libdlpi.c')
-rw-r--r--pcap-libdlpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-libdlpi.c b/pcap-libdlpi.c
index af167212..aef18fa2 100644
--- a/pcap-libdlpi.c
+++ b/pcap-libdlpi.c
@@ -80,7 +80,7 @@ list_interfaces(const char *linkname, void *arg)
lwp->lw_err = ENOMEM;
return (B_TRUE);
}
- (void) strlcpy(entry->linkname, linkname, DLPI_LINKNAME_MAX);
+ (void) pcap_strlcpy(entry->linkname, linkname, DLPI_LINKNAME_MAX);
if (lwp->lw_list == NULL) {
lwp->lw_list = entry;