Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abce5057 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Razziell
Browse files

msm: thermal: Fix third argument of strlcpy

parent 8e3cb01b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6196,7 +6196,7 @@ static int fetch_cpu_mitigaiton_info(struct msm_thermal_data *data,
			goto fetch_mitig_exit;
		}
		strlcpy((char *) cpus[_cpu].sensor_type, sensor_name,
			strlen(sensor_name) + 1);
			strlen((char *) cpus[_cpu].sensor_type));
		create_alias_name(_cpu, limits, pdev);
	}