pcap clients should use strlcpy() from the base system libc by default also.
This commit is contained in:
parent
2a5eb7e1d4
commit
21f48b73b0
@ -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>
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user