summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyeonghun Lee <kh9090.lee@samsung.com>2016-02-11 15:55:27 +0900
committerKyeonghun Lee <kh9090.lee@samsung.com>2016-02-11 15:55:27 +0900
commitf4ca3139aa5b0e98f390a500fae17c156528ef85 (patch)
treeb9aa2d7cb280ed74f3b07475cf8417d4d3e3f466
parentf3621c55e4aee160c6cd8ed4bd7c0d857470bcee (diff)
downloadmsg-service-f4ca3139aa5b0e98f390a500fae17c156528ef85.tar.gz
msg-service-f4ca3139aa5b0e98f390a500fae17c156528ef85.tar.bz2
msg-service-f4ca3139aa5b0e98f390a500fae17c156528ef85.zip
Change-Id: Ie1ff7f77182d235705672a64e01ff5a763945e6e Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
-rwxr-xr-xplugin/sms_plugin/SmsPluginParamCodec.cpp4
-rwxr-xr-xplugin/sms_plugin/include/SmsPluginTypes.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/plugin/sms_plugin/SmsPluginParamCodec.cpp b/plugin/sms_plugin/SmsPluginParamCodec.cpp
index bb40be6..a3d7709 100755
--- a/plugin/sms_plugin/SmsPluginParamCodec.cpp
+++ b/plugin/sms_plugin/SmsPluginParamCodec.cpp
@@ -112,7 +112,7 @@ int SmsPluginParamCodec::encodeTime(const SMS_TIMESTAMP_S *pTimeStamp, char **pp
int SmsPluginParamCodec::encodeDCS(const SMS_DCS_S *pDCS, char **ppParam)
{
- *ppParam = new char;
+ *ppParam = new char[MAX_DCS_PARAM_LEN];
**ppParam = 0x00;
@@ -164,7 +164,7 @@ int SmsPluginParamCodec::encodeDCS(const SMS_DCS_S *pDCS, char **ppParam)
return 0;
}
- return 1;
+ return MAX_DCS_PARAM_LEN;
}
diff --git a/plugin/sms_plugin/include/SmsPluginTypes.h b/plugin/sms_plugin/include/SmsPluginTypes.h
index 3d74b7e..646947f 100755
--- a/plugin/sms_plugin/include/SmsPluginTypes.h
+++ b/plugin/sms_plugin/include/SmsPluginTypes.h
@@ -43,6 +43,7 @@ extern "C"
#define MAX_SMS_SEND_RETRY 4
#define MAX_SMSC_LEN 20
#define MAX_ADD_PARAM_LEN 12
+#define MAX_DCS_PARAM_LEN 1
#define MAX_ABS_TIME_PARAM_LEN 7
#define MAX_REL_TIME_PARAM_LEN 1
#define MAX_UD_HEADER_NUM 7