Use TAPI_SMS_ENCODED_SCA_LEN_MAX
authorPhilippe Nunes <philippe.nunes@linux.intel.com>
Sat, 16 Mar 2013 10:36:22 +0000 (11:36 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 08:10:28 +0000 (17:10 +0900)
src/sms.c

index cf392db..65c4d1c 100644 (file)
--- a/src/sms.c
+++ b/src/sms.c
@@ -1032,7 +1032,7 @@ gboolean dbus_plugin_sms_notification(struct custom_data *ctx, const char *plugi
                        gchar *sca = NULL;
                        gchar *tpdu = NULL;                     
 
-                       sca = g_base64_encode((const guchar *)&(noti->msgInfo.sca[0]), SMS_SMSP_ADDRESS_LEN);
+                       sca = g_base64_encode((const guchar *)&(noti->msgInfo.sca[0]), TAPI_SMS_ENCODED_SCA_LEN_MAX);
                        if (sca == NULL) {
                                dbg("g_base64_encode: Failed to Enocde msgInfo.sca");
                                sca = "";