diff --git a/libusb/descriptor.c b/libusb/descriptor.c index 509372c..74d6de5 100644 --- a/libusb/descriptor.c +++ b/libusb/descriptor.c @@ -1176,7 +1176,8 @@ int API_EXPORTED libusb_get_string_descriptor_ascii(libusb_device_handle *dev_ha if (tbuf[0] > r) return LIBUSB_ERROR_IO; - for (di = 0, si = 2; si < tbuf[0]; si += 2) { + di = 0; + for (si = 2; si < tbuf[0]; si += 2) { if (di >= (length - 1)) break; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index ebdea71..ea7dafb 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11283 +#define LIBUSB_NANO 11284