aboutsummaryrefslogtreecommitdiff
path: root/pcap-usb-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r--pcap-usb-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c
index bf526a38..8201209f 100644
--- a/pcap-usb-linux.c
+++ b/pcap-usb-linux.c
@@ -395,10 +395,10 @@ usb_activate(pcap_t* handle)
handle->setnonblock_op = pcap_setnonblock_fd;
/*get usb bus index from device name */
- if (sscanf(handle->opt.source, USB_IFACE"%d", &handlep->bus_index) != 1)
+ if (sscanf(handle->opt.device, USB_IFACE"%d", &handlep->bus_index) != 1)
{
pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
- "Can't get USB bus index from %s", handle->opt.source);
+ "Can't get USB bus index from %s", handle->opt.device);
return PCAP_ERROR;
}