blob: e9a4da8fab2dde132716ece4fb381276d8695187 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
http://bugs.gentoo.org/show_bug.cgi?id=318937
http://boxster.ghz.cc/projects/nut/changeset/2407
Index: /trunk/drivers/libhid.c
===================================================================
--- /trunk/drivers/libhid.c (revision 2336)
+++ /trunk/drivers/libhid.c (revision 2407)
@@ -142,5 +142,5 @@
int id = pData->ReportID;
int r;
- unsigned char buf[SMALLBUF];
+ unsigned char buf[8]; /* Maximum size for low-speed USB devices */
if (rbuf->ts[id] + age > time(NULL)) {
@@ -470,5 +470,5 @@
int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize)
{
- unsigned char buf[SMALLBUF];
+ unsigned char buf[8]; /* Maximum size for low-speed USB devices */
int itemCount = 0;
int buflen, r, i;
|