more fix for libccid.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2021-10-04 13:56:32 +09:00
parent 86ccc02be7
commit f10cdce66c

View File

@@ -252,7 +252,7 @@ attach_device (char busid[32], size_t *len_p)
return (const char *)&usbip_usb_device;
}
#define URB_DATA_SIZE (65544+10)
#define URB_DATA_SIZE (65544+10+2)
struct usbip_msg_cmd {
uint32_t devid;
@@ -747,7 +747,7 @@ usbip_handle_urb (uint32_t seq)
leave:
msg.cmd = htonl (REP_URB_SUBMIT);
msg.seq = htonl (urb->seq);
msg.seq = htonl (seq);
memset (&msg_rep, 0, sizeof (msg_rep));
msg_rep.status = htonl (r);