diff options
author | Sunghyun Kwon <sh0701.kwon@samsung.com> | 2015-09-03 15:31:56 +0900 |
---|---|---|
committer | Sunghyun Kwon <sh0701.kwon@samsung.com> | 2015-09-03 15:31:56 +0900 |
commit | 0cc5a01bc7a6e7485a170690667e95b5a6028b0f (patch) | |
tree | 8ae60df02ad498020fe3e248e9643364bab4df97 /email-common-use | |
parent | 922c841dc14b6a4021952113f2290ddcae9c2053 (diff) | |
download | email-service-0cc5a01bc7a6e7485a170690667e95b5a6028b0f.tar.gz email-service-0cc5a01bc7a6e7485a170690667e95b5a6028b0f.tar.bz2 email-service-0cc5a01bc7a6e7485a170690667e95b5a6028b0f.zip |
Modified the indentsubmit/tizen/20150903.083144accepted/tizen/wearable/20150903.111125accepted/tizen/tv/20150903.110949accepted/tizen/mobile/20150903.110835
Change-Id: I58375a94142bfd49e168fa9f50fd240353fd5fab
Diffstat (limited to 'email-common-use')
-rwxr-xr-x | email-common-use/email-convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/email-common-use/email-convert.c b/email-common-use/email-convert.c index 8299cd5..3dc30b5 100755 --- a/email-common-use/email-convert.c +++ b/email-common-use/email-convert.c @@ -700,7 +700,7 @@ static char *convert_format(char *fmt) char *converted_fmt = NULL; string_size = strlen(fmt); - converted_fmt = em_malloc(string_size); + converted_fmt = em_malloc(string_size + 1); if (converted_fmt == NULL) { EM_DEBUG_EXCEPTION("em_malloc failed"); return NULL; @@ -778,7 +778,7 @@ INTERNAL_FUNC char* em_convert_account_to_byte_stream(email_account_t* account, return NULL; } - tn = tpl_map(EMAIL_ACCOUNT_FMT, account, &tb, &(account->user_data_length)); + tn = tpl_map(converted_fmt, account, &tb, &(account->user_data_length)); if (!tn) { EM_SAFE_FREE(converted_fmt); EM_DEBUG_EXCEPTION("tpl_map failed"); |