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 'https://git.koszko.org/cgit-static/cgit.png' alt='cgit logo'/> index : guix
Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/HACKING
AgeCommit message (Expand)Author
2020-01-09doc: Move "Commit Access" section from 'HACKING' to the manual....Ludovic Courtès
2020-01-09doc: Add "Tracking Bugs and Patches" section....Ludovic Courtès
2019-07-13doc: Update keyserver URL....Leo Famulari
2019-02-11HACKING: Update key server....Ludovic Courtès
2018-07-22doc: Fix typo (missing period)...Pierre Neidhardt
2017-08-19doc: Mention how to use emacs-debbugs....Arun Isaac
2017-03-27maint: Give command to install the pre-push hook....Ludovic Courtès
2017-03-24maint: Mention the Signed-off-by line in 'HACKING'....Clément Lassieur
2017-03-15maint: Mention guix-patches@gnu.org in 'HACKING'....Ludovic Courtès
2017-01-30maint: Fix invalid calls to 'info'....Mathieu Lirzin
2017-01-04doc: Add a Git hook that verifies signatures before pushing....Leo Famulari
2016-07-24doc: Explain how to set up Git for signing....Ludovic Courtès
2016-07-14doc: Mention commit signatures in HACKING....Leo Famulari