summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyeonghun Lee <kh9090.lee@samsung.com>2017-03-31 15:53:54 +0900
committerKyeonghun Lee <kh9090.lee@samsung.com>2017-03-31 15:53:54 +0900
commit621ee5da3b3dbfffd84069c3f35d40997c17bd08 (patch)
treedabb84bf3f23b1b194c88db6b916ffcf7cddf97a
parent3fe82dfe7e209c3311b4b07e41c3f4d6a46f8c6b (diff)
downloademail-service-621ee5da3b3dbfffd84069c3f35d40997c17bd08.tar.gz
email-service-621ee5da3b3dbfffd84069c3f35d40997c17bd08.tar.bz2
email-service-621ee5da3b3dbfffd84069c3f35d40997c17bd08.zip
Change-Id: Ibb5580470e3f85c0633cb905dfe54078facf05b4 Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
-rwxr-xr-xutilities/test-application/testapp-mail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utilities/test-application/testapp-mail.c b/utilities/test-application/testapp-mail.c
index c9ccf68..4f9c6c7 100755
--- a/utilities/test-application/testapp-mail.c
+++ b/utilities/test-application/testapp-mail.c
@@ -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);