diff options
Diffstat (limited to 'libusb/io.c')
-rw-r--r-- | libusb/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/io.c b/libusb/io.c index 4ed956c..2e1daf4 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -1170,7 +1170,7 @@ API_EXPORTED struct libusb_transfer *libusb_alloc_transfer(int iso_packets) { size_t os_alloc_size = usbi_backend->transfer_priv_size + (usbi_backend->add_iso_packet_size * iso_packets); - int alloc_size = sizeof(struct usbi_transfer) + size_t alloc_size = sizeof(struct usbi_transfer) + sizeof(struct libusb_transfer) + (sizeof(struct libusb_iso_packet_descriptor) * iso_packets) + os_alloc_size; |