diff options
author | rekado <rekado@elephly.net> | 2016-10-10 07:16:19 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2016-10-10 07:16:19 +0200 |
commit | 4370fac39f2827d2158d58d992fe74d37f71710e (patch) | |
tree | d2618bf223f18a2722417e461f995743a1f14827 | |
parent | 4ba07af1a0c75ba98b2105a6f9ac039e4159109e (diff) |
libre: Add patch for Axoloti's libusb.
-rw-r--r-- | libre/libusb-for-axoloti.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libre/libusb-for-axoloti.patch b/libre/libusb-for-axoloti.patch new file mode 100644 index 0000000..2c07d76 --- /dev/null +++ b/libre/libusb-for-axoloti.patch @@ -0,0 +1,14 @@ +diff -rp -u4 libusb-1.0.19-orig/libusb/descriptor.c libusb-1.0.19/libusb/descriptor.c +--- libusb-1.0.19-orig/libusb/descriptor.c 2015-05-12 00:15:19 +0200 ++++ libusb-1.0.19/libusb/descriptor.c 2015-05-12 00:17:09 +0200 +@@ -1181,9 +1181,9 @@ int API_EXPORTED libusb_get_string_descr + if (tbuf[1] != LIBUSB_DT_STRING) + return LIBUSB_ERROR_IO; + + if (tbuf[0] > r) +- return LIBUSB_ERROR_IO; ++ tbuf[0] = r; + + for (di = 0, si = 2; si < tbuf[0]; si += 2) { + if (di >= (length - 1)) + break; |