summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--class/cdc/usbd_cdc_acm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class/cdc/usbd_cdc_acm.c b/class/cdc/usbd_cdc_acm.c
index be7020f8..0c911c6c 100644
--- a/class/cdc/usbd_cdc_acm.c
+++ b/class/cdc/usbd_cdc_acm.c
@@ -39,7 +39,7 @@ static int cdc_acm_class_interface_request_handler(uint8_t busid, struct usb_set
/* 4 - Space */
/* 6 | bDataBits | 1 | Number Data bits (5, 6, 7, 8 or 16). */
/*******************************************************************************/
- memcpy(&line_coding, *data, setup->wLength);
+ memcpy(&line_coding, *data, 7);
USB_LOG_DBG("Set intf:%d linecoding <%d %d %s %s>\r\n",
intf_num,
(unsigned int)line_coding.dwDTERate,