summaryrefslogtreecommitdiff
path: root/sys-power/nut/files/nut-2.6.2-lowspeed-buffer-size.patch
blob: 1e6617316fb988a412f0c97a226bacbd33fbe982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
http://bugs.gentoo.org/show_bug.cgi?id=318937
http://boxster.ghz.cc/projects/nut/changeset/2407

Respun from nut-2.4.3-lowspeed-buffer-size.patch

Index: a/drivers/libhid.c
===================================================================
--- a/drivers/libhid.c (revision 2336)
+++ a/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)) {