diff options
author | Abhishek Vijay <abhishek.v@samsung.com> | 2020-01-07 13:50:17 +0530 |
---|---|---|
committer | Abhishek Vijay <abhishek.v@samsung.com> | 2020-01-07 13:50:17 +0530 |
commit | cab06859ced2c39fa91251b6fc574c1581d11ba7 (patch) | |
tree | 661f8ed53cbad6bae01f568715e0dfa5c29ef664 | |
parent | 09199acfdf1d3a98b4389efb851f79a282aa1c5c (diff) | |
download | my-account-accepted/tizen_7.0_unified_hotfix.tar.gz my-account-accepted/tizen_7.0_unified_hotfix.tar.bz2 my-account-accepted/tizen_7.0_unified_hotfix.zip |
[Tizen 6.0] enable build with GCC 9.2tizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_6.5/20211028.164101submit/tizen_6.0_hotfix/20201103.115105submit/tizen_6.0_hotfix/20201102.192905submit/tizen_6.0/20201029.205505submit/tizen/20200107.120821accepted/tizen/unified/20200108.131407accepted/tizen/7.0/unified/hotfix/20221116.112104accepted/tizen/7.0/unified/20221110.060334accepted/tizen/6.5/unified/20211028.224543accepted/tizen/6.0/unified/hotfix/20201103.045057tizen_7.0_hotfixtizen_7.0tizen_6.5tizen_6.0_hotfixtizen_6.0tizenaccepted/tizen_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfix
Change-Id: I80821645e90f126ea04a6b666ebde34d828284ad
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
-rw-r--r-- | src/my-account-view-main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/my-account-view-main.c b/src/my-account-view-main.c index 9ef2ddd..aa5f736 100644 --- a/src/my-account-view-main.c +++ b/src/my-account-view-main.c @@ -328,7 +328,8 @@ bool __myaccount_get_capablity_cb(const char* capability_type, account_capabilit MA_SNPRINTF(capability_textbuf, 127, "%s, %s", temp2, capability_string); MA_MEM_FREE(temp2); } else { - MA_SNPRINTF(capability_textbuf, 127, "%s%s", capability_textbuf, capability_string); + if (strlen(capability_textbuf) < 128) + capability_textbuf[strlen(capability_textbuf) + 1] = '\0'; } } } @@ -350,7 +351,7 @@ void myaccount_accountlist_set_service_name(myaccount_account_info* account_info MA_DEBUG("iter start"); if (!strcmp(account_app_info->package_name, account_info->package_name)) { MA_DEBUG("find same package_name"); - MA_STRNCPY(account_info->service_name, account_app_info->service_name, sizeof(account_info->service_name)); + MA_STRNCPY(account_info->service_name, account_app_info->service_name, sizeof(account_info->service_name)+1); break; } |