[sane-devel] Bug in 1.0.9 libusb support
Peter O'Gorman
peter at pogma.com
Wed Nov 27 15:38:38 GMT 2002
Well, first a thank you, got my Canon fb636u scanner working on Max OS
X 10.2.2 :)
There appears to be a bug in the libusb support, patch follows.
The in and out endpoints are being set to a value which has been &'ed,
this is invalid.
I also had to make some build changes as the build all static option
didn't seem to work for me, had to add -module to the makefile.in in
the backend dir, but as this is not portable, am not including it here.
Thanks,
Peter
--- sane-backends-1.0.9.orig/sanei/sanei_usb.c Sat Oct 12 20:06:05 2002
+++ sane-backends-1.0.9/sanei/sanei_usb.c Sun Nov 24 19:41:34 2002
@@ -542,7 +542,7 @@
"(address: %d), ignoring the new one\n",
devices[devcount].bulk_in_ep);
else
- devices[devcount].bulk_in_ep = address;
+ devices[devcount].bulk_in_ep =
endpoint->bEndpointAddress;
}
else
{
@@ -551,7 +551,7 @@
"(address: %d), ignoring the new one\n",
devices[devcount].bulk_out_ep);
else
- devices[devcount].bulk_out_ep = address;
+ devices[devcount].bulk_out_ep =
endpoint->bEndpointAddress;
}
}
#else /* not HAVE_LIBUSB */
More information about the sane-devel
mailing list