From da6be59ba625ecc54692edd3f2591241210f4e8d Mon Sep 17 00:00:00 2001 From: Sameer Thalappil Date: Wed, 15 Jan 2014 10:32:54 -0800 Subject: qcacld: Fix issues reported by code inspection tool Caller of the SME country code change API is only providing two bytes for country code. CRs-Fixed: 601548 Change-Id: If034a6065a0b4b894277d0994aedf4671710172c --- CORE/SME/src/sme_common/sme_Api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c index f918b47a8ed9..6b1b6f6d1ba9 100644 --- a/CORE/SME/src/sme_common/sme_Api.c +++ b/CORE/SME/src/sme_common/sme_Api.c @@ -5412,7 +5412,7 @@ eHalStatus sme_GenericChangeCountryCode( tHalHandle hHal, pMsg->msgType = pal_cpu_to_be16((tANI_U16)eWNI_SME_GENERIC_CHANGE_COUNTRY_CODE); pMsg->msgLen = (tANI_U16)sizeof(tAniGenericChangeCountryCodeReq); - vos_mem_copy(pMsg->countryCode, pCountry, 3); + vos_mem_copy(pMsg->countryCode, pCountry, 2); pMsg->domain_index = reg_domain; msg.type = eWNI_SME_GENERIC_CHANGE_COUNTRY_CODE; -- cgit v1.2.3