diff --git a/libusb/descriptor.c b/libusb/descriptor.c
index 74d6de5..0b0e314 100644
--- a/libusb/descriptor.c
+++ b/libusb/descriptor.c
@@ -1174,7 +1174,7 @@ int API_EXPORTED libusb_get_string_descriptor_ascii(libusb_device_handle *dev_ha
return LIBUSB_ERROR_IO;
if (tbuf[0] > r)
- return LIBUSB_ERROR_IO;
+ tbuf[0] = r;
di = 0;
for (si = 2; si < tbuf[0]; si += 2) {
--
2.17.0
an='2'>
index : guix | |
Wojtek's customized Guix | |
Age | Commit message (Expand) | Author |
2018-12-24 | gnu: file: Fix CVE-2018-10360....* gnu/packages/patches/file-CVE-2018-10360.patch: New file.
* gnu/packages/file.scm (file)[replacement]: New field.
(file/fixed): New variable.
* gnu/packages/commencement.scm (file-boot0): Use 'package/inherit' to
receive security fixes.
* gnu/local.mk (dist_patch_DATA): Register it.
| Efraim Flashner |
2018-05-01 | gnu: file: Update to 5.33....* gnu/packages/file.scm (file): Update to 5.33.
| Tobias Geerinckx-Rice |
2018-01-04 | Merge branch 'master' into core-updates | Mark H Weaver |
2018-01-04 | gnu: file: Mention libmagic....* gnu/packages/file.scm (file)[description]: Mention libmagic.
| Leo Famulari |