LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File nut-hidparser.diff of Package nut (Project DISCONTINUED:openSUSE:10.3:Update)

--- tags/v2.2.0/drivers/hidparser.c	(revision 1148)
+++ tags/v2.2.0/drivers/hidparser.c	(working copy)
@@ -618,7 +618,7 @@
 	/* done scanning report descriptor; now calculate derived data */
 
 	/* make a list of reports and their lengths */
-	memset(pDesc->replen, 0, 256);
+	memset(pDesc->replen, 0, 256 * sizeof(*pDesc->replen));
 	for (i=0; i<pDesc->nitems; i++) {
 		id = item[i].ReportID;