summaryrefslogtreecommitdiff
path: root/utils/MsgUtilStorage.cpp
diff options
context:
space:
mode:
authorKeebum Kim <keebum.kim@samsung.com>2013-03-11 17:16:07 +0900
committerKeebum Kim <keebum.kim@samsung.com>2013-03-11 17:16:07 +0900
commita965e18364d8cf74ea624bec94c9ff74e661cbc5 (patch)
treee0a411dd198d01a768bb689241d698f917cbcd8a /utils/MsgUtilStorage.cpp
parent7dc1b0a2ec820e58199bab30705dfcbb07edbd9f (diff)
downloadmsg-service-a965e18364d8cf74ea624bec94c9ff74e661cbc5.tar.gz
msg-service-a965e18364d8cf74ea624bec94c9ff74e661cbc5.tar.bz2
msg-service-a965e18364d8cf74ea624bec94c9ff74e661cbc5.zip
Modify check address logic.
Change-Id: Ie4481bb5baf3ce67bd1a815a625d6987691246f6
Diffstat (limited to 'utils/MsgUtilStorage.cpp')
-rwxr-xr-xutils/MsgUtilStorage.cpp4
1 files changed, 2 insertions, 2 deletions
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));