From: Keebum Kim Date: Mon, 11 Mar 2013 08:16:07 +0000 (+0900) Subject: Modify check address logic. X-Git-Tag: accepted/tizen_2.1/20130425.035101~14^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a965e18364d8cf74ea624bec94c9ff74e661cbc5;p=framework%2Fmessaging%2Fmsg-service.git Modify check address logic. Change-Id: Ie4481bb5baf3ce67bd1a815a625d6987691246f6 --- diff --git a/utils/MsgUtilStorage.cpp b/utils/MsgUtilStorage.cpp index 33f5fa9..27588c0 100755 --- a/utils/MsgUtilStorage.cpp +++ b/utils/MsgUtilStorage.cpp @@ -843,7 +843,7 @@ bool MsgExistAddress(MsgDbHandler *pDbHandle, const MSG_MESSAGE_INFO_S *pMsg, ms *pConvId = 0; if(pMsg->nAddressCnt == 1) { - if (strlen(pMsg->addressList[0].addressVal) > MAX_PRECONFIG_NUM) { + if (strlen(pMsg->addressList[0].addressVal) > MAX_PRECONFIG_NUM && pMsg->addressList[0].addressType == MSG_ADDRESS_TYPE_PLMN) { char newPhoneNum[MAX_PRECONFIG_NUM+1]; memset(newPhoneNum, 0x00, sizeof(newPhoneNum)); @@ -890,7 +890,7 @@ bool MsgExistAddress(MsgDbHandler *pDbHandle, const MSG_MESSAGE_INFO_S *pMsg, ms } } else { /* multiple address */ - if (strlen(pMsg->addressList[0].addressVal) > MAX_PRECONFIG_NUM) { + if (strlen(pMsg->addressList[0].addressVal) > MAX_PRECONFIG_NUM && pMsg->addressList[0].addressType == MSG_ADDRESS_TYPE_PLMN) { char newPhoneNum[MAX_PRECONFIG_NUM+1]; memset(newPhoneNum, 0x00, sizeof(newPhoneNum));