]> The Tcpdump Group git mirrors - libpcap/commit
Use pcap_strlcpy() rather than strncpy() to fill in p->errbuf.
authorGuy Harris <[email protected]>
Thu, 3 Oct 2019 18:17:07 +0000 (11:17 -0700)
committerGuy Harris <[email protected]>
Thu, 3 Oct 2019 18:17:07 +0000 (11:17 -0700)
commit39f906a547c0cc79a3d87a5e8bfd00da625431d6
tree929c9404bc3ce0695b38ac6130def9fda81d54cc
parentfb4f0f1c85560e65cee6c6f6ba0addb2fc468136
Use pcap_strlcpy() rather than strncpy() to fill in p->errbuf.

That's what we do elsewhere, as it guarantees that we null-terminate the
error message (not that we will ever overflow the buffer in that case,
as the error message is definitely shorter than the error buffer size).
pcap-dag.c