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 >cgit logo index : guix
Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/channels.scm
AgeCommit message (Expand)Author
2023-09-26tests: Assume ‘git’ is always available....Ludovic Courtès
2022-10-22Remove now unnecessary uses of (guix grafts)....Ludovic Courtès
2022-02-14git-authenticate: Ensure the target is a descendant of the introductory commit....Ludovic Courtès
2021-12-22tests: Move keys into ./tests/keys/ and add a third ed25519 key....Attila Lendvai
2021-09-18channels: 'channel-news-entry-commit' correctly resolves annotated tags....Ludovic Courtès