Unble to compose is displayed when attach contact and send 64/94064/5
authorSan Cho <san.cho@samsung.com>
Mon, 20 Jun 2016 09:59:16 +0000 (18:59 +0900)
committerintae jeon <intae.jeon@samsung.com>
Fri, 28 Oct 2016 07:13:26 +0000 (00:13 -0700)
[Problem] Unble to compose is displayed when attach contact and send
[Cause & Measure] Cause: the length of attachment file name is too long.
Measure: extend file name buffer size.

Change-Id: Ia67c1fa57f1553eedb6ed3a477265f466c2b6174

email-daemon/main.c

index 7b01385..db963b0 100755 (executable)
@@ -1508,10 +1508,10 @@ void stb_add_mail(HIPC_API a_hAPI)
        email_meeting_request_t result_meeting_request = {0};
        emipc_email_api_info *api_info = (emipc_email_api_info *)a_hAPI;
        email_account_server_t account_server_type = EMAIL_SERVER_TYPE_NONE;
-    int nAPPID = emipc_get_app_id(a_hAPI);
-    char *multi_user_name = NULL;
-    char *prefix_path = NULL;
-    char real_file_path[255] = {0};
+       int nAPPID = emipc_get_app_id(a_hAPI);
+       char *multi_user_name = NULL;
+       char *prefix_path = NULL;
+       char real_file_path[MAX_PATH] = {0};
 
     if ((err = emcore_get_user_name(nAPPID, &multi_user_name)) != EMAIL_ERROR_NONE) {
         EM_DEBUG_EXCEPTION("emcore_get_user_info failed : [%d]", err);