Align tel_noti_sms_incomming_msg
authorPhilippe Nunes <philippe.nunes@linux.intel.com>
Sat, 16 Mar 2013 10:49:53 +0000 (11:49 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 08:09:33 +0000 (17:09 +0900)
include/TelSms.h
src/tapi_common.c

index a316929..0ed021b 100644 (file)
@@ -806,7 +806,7 @@ typedef struct {
 // ********************************************************************//
 
 struct tel_noti_sms_incomming_msg {
-        char Sca[TAPI_SIM_SMSP_ADDRESS_LEN];
+        char Sca[TAPI_SMS_ENCODED_SCA_LEN_MAX];
         int MsgLength;
         char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];
 };
index a76a172..d179204 100644 (file)
@@ -215,7 +215,7 @@ static void _process_sms_event(const gchar *sig, GVariant *param,
 
                decoded_sca = g_base64_decode(sca, &length);
                if (decoded_sca) {
-                       memcpy(&(noti.Sca[0]), decoded_sca, TAPI_SIM_SMSP_ADDRESS_LEN);
+                       memcpy(&(noti.Sca[0]), decoded_sca, TAPI_SMS_ENCODED_SCA_LEN_MAX);
                        g_free(decoded_sca);
                }