diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-10-03 11:17:07 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-10-08 10:25:20 -0700 |
commit | 4f9bd8bc56e80dff58f3967406c5f2e78ce68ce3 (patch) | |
tree | 1c38530fdbabb8fe22f0d7c128451ee070fcf126 /rpcapd/daemon.c | |
parent | fcf3db32cbebd0812e8a619b4cfc17f76985409c (diff) | |
download | libpcap-4f9bd8bc56e80dff58f3967406c5f2e78ce68ce3.tar.gz |
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).
(cherry picked from commit 39f906a547c0cc79a3d87a5e8bfd00da625431d6)
Diffstat (limited to 'rpcapd/daemon.c')
0 files changed, 0 insertions, 0 deletions