LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File acpi-memset-with-zero-length.patch of Package acpi (Project Base:System)

--- acpi.c.orig
+++ acpi.c
@@ -492,7 +492,7 @@ void print_thermal_information(struct li
 	double real_temp;
 	int i, trip_points = -1;
 
-	memset(trip, sizeof trip, 0);
+	memset(trip, 0, sizeof trip);
 	fields = sensor->data;
 	while (fields) {
 	    value = fields->data;