archrelease: copy trunk to community-any
[ArchLinux/community.git] / nut / trunk / nut-lowspeed-buffer-size.patch
blobd9f786dfc3c528e5c378a6984337e0cdc818ec84
1 http://bugs.gentoo.org/show_bug.cgi?id=318937
2 http://boxster.ghz.cc/projects/nut/changeset/2407
4 Respun from nut-2.4.3-lowspeed-buffer-size.patch
6 Index: a/drivers/libhid.c
7 ===================================================================
8 --- a/drivers/libhid.c
9 +++ b/drivers/libhid.c
10 @@ -477,7 +477,7 @@
12 int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize)
14 - unsigned char buf[SMALLBUF];
15 + unsigned char buf[8]; /* Maximum size for low-speed USB devices */
16 int itemCount = 0;
17 int buflen, r, i;
18 HIDData_t *pData;