Skip to content
Snippets Groups Projects
Commit ba1ad401 authored by Sandeep Mistry's avatar Sandeep Mistry
Browse files

Add cast for string passed into strlen

parent ea894b1e
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ bool USBDeviceClass::sendStringDescriptor(const uint8_t *string, uint8_t maxlen)
uint8_t buffer[maxlen];
buffer[0] = 0x03;
buffer[1] = strlen(string) * 2 + 2;
buffer[1] = strlen((const char*)string) * 2 + 2;
uint8_t i;
for (i = 2; i < maxlen && *string; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment