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 c31a91947d
commit 8f20122e54

View File

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