~ruther/guix-local

ref: d6f3d16b2cb6ce8f66991e6d6a6fd79912583ccc guix-local/gnu/packages/patches/libusb-for-axoloti.patch -rw-r--r-- 395 bytes
d6f3d16b — Mathieu Lirzin gnu: clojure-data-csv: Update to 1.1.1. 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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