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

Commit 7e563fbc authored by Naitik Bharadiya's avatar Naitik Bharadiya Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: Fix strlcpy compilation error with clang



Replace size of source with size of the destination in
strlcpy size argument to fix clang compilation error.

Change-Id: Ia05e562b1524995b1aa98d934bcfa4d2c5642b70
Signed-off-by: default avatarNaitik Bharadiya <bharad@codeaurora.org>
parent be3178ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ static struct msm_rpm_master_stats_platform_data
		if (!pdata->masters[i])
			goto err;
		strlcpy(pdata->masters[i], master_name,
					strlen(master_name) + 1);
					strlen(pdata->masters[i]) + 1);
	}
	return pdata;
err: