mirror of https://github.com/FreeRDP/FreeRDP
Fixed discrepancy in string descriptor default
This commit is contained in:
parent
37a5a7a157
commit
804891c0e8
|
@ -805,7 +805,7 @@ static UINT32 libusb_udev_control_query_device_text(IUDEVICE* idev, UINT32 TextT
|
|||
"%s [%d], iProduct: %" PRIu8 "!",
|
||||
msg, ret, devDescriptor->iProduct);
|
||||
|
||||
len = strnlen(strDesc, MIN(sizeof(strDesc), inSize));
|
||||
len = MIN(sizeof(strDesc), inSize);
|
||||
for (i = 0; i < len; i++)
|
||||
text[i] = (WCHAR)strDesc[i];
|
||||
|
||||
|
|
Loading…
Reference in New Issue