fix svace issue 84/122384/1 accepted/tizen/3.0/common/20170403.140107 accepted/tizen/3.0/ivi/20170403.021645 accepted/tizen/3.0/mobile/20170403.021518 accepted/tizen/3.0/wearable/20170403.021617 submit/tizen_3.0/20170331.065021
authorKyeonghun Lee <kh9090.lee@samsung.com>
Fri, 31 Mar 2017 06:53:54 +0000 (15:53 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Fri, 31 Mar 2017 06:54:33 +0000 (23:54 -0700)
Change-Id: Ibb5580470e3f85c0633cb905dfe54078facf05b4
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
utilities/test-application/testapp-mail.c

index c9ccf68..4f9c6c7 100755 (executable)
@@ -1107,6 +1107,7 @@ static gboolean testapp_test_get_mail_list_for_thread_view()
        int mailbox_id = 0;
        int err_code = EMAIL_ERROR_NONE;
        struct tm *time_info;
+       char buf[26] = {0};
 
        testapp_print("\nEnter account id\n");
        if (0 >= scanf("%d", &account_id))
@@ -1133,7 +1134,7 @@ static gboolean testapp_test_get_mail_list_for_thread_view()
                        testapp_print(" >>> subject [ %s ] \n", mail_list[i].subject);
                        testapp_print(" >>> body_download_status [ %d ] \n", mail_list[i].body_download_status);
                        time_info = localtime(&mail_list[i].date_time);
-                       testapp_print(" >>> date_time [ %s ] \n", asctime(time_info));
+                       testapp_print(" >>> date_time [ %s ] \n", asctime_r(time_info, buf));
                        testapp_print(" >>> flags_seen_field [ %d ] \n", mail_list[i].flags_seen_field);
                        testapp_print(" >>> priority [ %d ] \n", mail_list[i].priority);
                        testapp_print(" >>> save_status [ %d ] \n", mail_list[i].save_status);