xiaoxiang781216 commented on a change in pull request #5476:
URL: https://github.com/apache/incubator-nuttx/pull/5476#discussion_r822289402



##########
File path: drivers/usbdev/dfu.c
##########
@@ -271,7 +271,7 @@ static int usbclass_mkstrdesc(uint8_t id, FAR struct 
usb_strdesc_s *strdesc)
       return -EINVAL;
     }
 
-  strdesc->len  = 2 + convert_to_utf16(strdesc->data, str);
+  strdesc->len  = 2 + convert_to_utf16((FAR uint8_t *)(strdesc + 1), str);

Review comment:
       It's better to keep as before since 2/4 is used in many place.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to