fix pf_ring build

pull/483/head
Eric Leblond 13 years ago
parent 2a46f0dae4
commit 20ca270dc3

@ -1005,10 +1005,10 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
#ifdef HAVE_PFRING
suri->run_mode = RUNMODE_PFRING;
if (optarg != NULL) {
memset(pcap_dev, 0, sizeof(pcap_dev));
strlcpy(pcap_dev, optarg,
((strlen(optarg) < sizeof(pcap_dev)) ?
(strlen(optarg) + 1) : sizeof(pcap_dev)));
memset(suri->pcap_dev, 0, sizeof(suri->pcap_dev));
strlcpy(suri->pcap_dev, optarg,
((strlen(optarg) < sizeof(suri->pcap_dev)) ?
(strlen(optarg) + 1) : sizeof(suri->pcap_dev)));
LiveRegisterDevice(optarg);
}
#else

Loading…
Cancel
Save