Changes the spciefied buffer size from 3 bytes to 2 bytes to match
the amount we allocated. Hasn't caused problems yet, but probably
could.

Signed-off-by: Jason Gerecke <killert...@gmail.com>
---
 src/2.6.16/wacom_sys.c |    2 +-
 src/2.6.30/wacom_sys.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/2.6.16/wacom_sys.c b/src/2.6.16/wacom_sys.c
index 77353ba..a97ad9e 100644
--- a/src/2.6.16/wacom_sys.c
+++ b/src/2.6.16/wacom_sys.c
@@ -331,7 +331,7 @@ static int wacom_query_tablet_data(struct usb_interface 
*intf, struct wacom_feat
                        if (error >= 0)
                                error = usb_get_report(intf,
                                        WAC_HID_FEATURE_REPORT, report_id,
-                                       rep_data, 3);
+                                       rep_data, 2);
                } while ((error < 0 || rep_data[1] != 4) && limit++ < 5);
        } else if (features->type != TABLETPC && features->type != TABLETPC2FG) 
{
                do {
diff --git a/src/2.6.30/wacom_sys.c b/src/2.6.30/wacom_sys.c
index a8a5e4f..f1d9cf7 100755
--- a/src/2.6.30/wacom_sys.c
+++ b/src/2.6.30/wacom_sys.c
@@ -334,7 +334,7 @@ static int wacom_query_tablet_data(struct usb_interface 
*intf, struct wacom_feat
                        if (error >= 0)
                                error = usb_get_report(intf,
                                        WAC_HID_FEATURE_REPORT, report_id,
-                                       rep_data, 3);
+                                       rep_data, 2);
                } while ((error < 0 || rep_data[1] != 4) && limit++ < 5);
        } else if (features->type != TABLETPC && features->type != TABLETPC2FG) 
{
                do {
-- 
1.7.9.1


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to