Package: libusb / 2:0.1.12-25

08_bus_location.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
--- a/linux.c
+++ b/linux.c
@@ -355,6 +355,7 @@
 
     strncpy(bus->dirname, entry->d_name, sizeof(bus->dirname) - 1);
     bus->dirname[sizeof(bus->dirname) - 1] = 0;
+    bus->location = atoi(bus->dirname);
 
     LIST_ADD(fbus, bus);