pcap clients should use strlcpy() from the base system libc by default also.

This commit is contained in:
Bruce M Simpson 2004-03-31 18:15:37 +00:00
parent 2a5eb7e1d4
commit 21f48b73b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127683

View File

@ -231,13 +231,6 @@ int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *);
#define PCAP_FDDIPAD 3
#endif
#ifndef HAVE_STRLCPY
#define strlcpy(x, y, z) \
(strncpy((x), (y), (z)), \
((z) <= 0 ? 0 : ((x)[(z) - 1] = '\0')), \
strlen((y)))
#endif
#include <stdarg.h>
/*