From 61c2ac571429ff5d6ef4ed42803af58df74373e0 Mon Sep 17 00:00:00 2001 From: Kano Date: Fri, 27 Sep 2013 14:57:22 +1000 Subject: [PATCH] usbutils - usb_bulk_transfer fix the buf/data fix --- usbutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbutils.c b/usbutils.c index ba2c9d33..2b3390bd 100644 --- a/usbutils.c +++ b/usbutils.c @@ -2288,7 +2288,7 @@ usb_bulk_transfer(struct libusb_device_handle *dev_handle, int intinfo, STATS_TIMEVAL(&tv_start); cg_rlock(&cgusb_fd_lock); - err = libusb_bulk_transfer(dev_handle, endpoint, data, + err = libusb_bulk_transfer(dev_handle, endpoint, buf, length, transferred, timeout); errn = errno; cg_runlock(&cgusb_fd_lock);