]> The Tcpdump Group git mirrors - libpcap/commit
Provide out own strlcpy() and strlcat() routines if necessary.
authorGuy Harris <[email protected]>
Tue, 16 Oct 2018 07:15:38 +0000 (00:15 -0700)
committerGuy Harris <[email protected]>
Tue, 16 Oct 2018 07:15:38 +0000 (00:15 -0700)
commit017c240336a375aebd52ec30cf341a207f1c12a4
tree51018597dbbf7efcfeb940e14f0a7bd58ea01095
parented63d72f6b9bddab83fc35a957a6a9ff02501d0a
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.
27 files changed:
CMakeLists.txt
Makefile.in
configure
configure.ac
gencode.c
missing/strlcat.c [new file with mode: 0644]
missing/strlcpy.c [new file with mode: 0644]
pcap-bpf.c
pcap-dag.c
pcap-dlpi.c
pcap-dos.c
pcap-libdlpi.c
pcap-linux.c
pcap-new.c
pcap-npf.c
pcap-null.c
pcap-rpcap.c
pcap-septel.c
pcap-sita.c
pcap-snf.c
pcap-usb-linux.c
pcap.c
portability.h
rpcapd/fileconf.c
rpcapd/rpcapd.c
savefile.c
sockutils.c