gnu: libusb-for-axoloti: Adjust patch.

* gnu/packages/patches/libusb-for-axoloti.patch: Adjust patch for use with
current version of libusb.
This commit is contained in:
Ricardo Wurmus 2018-05-23 15:23:01 +02:00
parent 8efe2a22ea
commit 6623bd826b
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 8 additions and 6 deletions

View File

@ -1,8 +1,8 @@
diff -rpu4 libusb-1.0.22.orig/libusb/descriptor.c libusb-1.0.22/libusb/descriptor.c diff --git a/libusb/descriptor.c b/libusb/descriptor.c
--- libusb-1.0.22.orig/libusb/descriptor.c 2018-03-17 08:23:37.000000000 +0100 index 74d6de5..0b0e314 100644
+++ libusb-1.0.22/libusb/descriptor.c 2018-03-29 10:36:09.968429473 +0200 --- a/libusb/descriptor.c
@@ -1173,9 +1173,9 @@ int API_EXPORTED libusb_get_string_descr +++ b/libusb/descriptor.c
if (tbuf[1] != LIBUSB_DT_STRING) @@ -1174,7 +1174,7 @@ int API_EXPORTED libusb_get_string_descriptor_ascii(libusb_device_handle *dev_ha
return LIBUSB_ERROR_IO; return LIBUSB_ERROR_IO;
if (tbuf[0] > r) if (tbuf[0] > r)
@ -11,4 +11,6 @@ diff -rpu4 libusb-1.0.22.orig/libusb/descriptor.c libusb-1.0.22/libusb/descripto
di = 0; di = 0;
for (si = 2; si < tbuf[0]; si += 2) { for (si = 2; si < tbuf[0]; si += 2) {
if (di >= (length - 1)) --
2.17.0