From: Eric Leblond Date: Tue, 30 Jul 2013 16:35:19 +0000 (+0200) Subject: fix pf_ring build X-Git-Tag: suricata-2.0beta2~430 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20ca270dc31fdfeaa657c313b0408474e9dd9156;p=thirdparty%2Fsuricata.git fix pf_ring build --- diff --git a/src/suricata.c b/src/suricata.c index 307373512d..d5a363efae 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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