aboutsummaryrefslogtreecommitdiff
path: root/pcap-null.c
diff options
context:
space:
mode:
authoritojun <itojun>2000-04-27 11:16:19 +0000
committeritojun <itojun>2000-04-27 11:16:19 +0000
commit6abf10866e492d3cf72df894e0551f59ee4d832e (patch)
treedf3cb342e2f511b5073e7d7daee1a22db8708952 /pcap-null.c
parentd2268605b4c5f8e21b0dec876cd5c5037e01c4af (diff)
nuke strcpy()
Diffstat (limited to 'pcap-null.c')
-rw-r--r--pcap-null.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-null.c b/pcap-null.c
index 963088fe..765c7efd 100644
--- a/pcap-null.c
+++ b/pcap-null.c
@@ -20,7 +20,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.8 2000-04-27 09:11:13 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-null.c,v 1.9 2000-04-27 11:16:20 itojun Exp $ (LBL)";
#endif
#include <sys/param.h> /* optionally get BSD define */
@@ -56,7 +56,7 @@ pcap_t *
pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
{
- (void)strcpy(ebuf, nosup);
+ (void)strlcpy(ebuf, nosup, PCAP_ERRBUFF_SIZE);
return (NULL);
}