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 img src='https://git.koszko.org/cgit-static/cgit.png' alt='cgit logo'/> index : guix
Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/nix/libutil
AgeCommit message (Expand)Author
2016-05-31daemon: Remove unused XML output code....Ludovic Courtès
2015-12-02daemon: Fix namespace issue.Eelco Dolstra
2015-12-02daemon: Support SHA-512 hashes....Eelco Dolstra
2015-12-02daemon: int2String -> std::to_string.Eelco Dolstra
2015-07-03Merge branch 'nix'....Ludovic Courtès
2015-06-03Merge branch 'nix'....Ludovic Courtès
2015-05-19Merge branch 'nix'....Ludovic Courtès
2015-05-19Revert "daemon: Fix possible use-after-free."...Ludovic Courtès
2015-05-11daemon: Fix possible use-after-free....Ludovic Courtès