From: sooyeon.kim Date: Tue, 23 Jan 2018 05:35:29 +0000 (+0000) Subject: Merge "Fix the size of app id" into tizen X-Git-Tag: accepted/tizen/unified/20180228.071749~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f52b4d117821fe554e0fafc9ea9e0b07b6bc9be;hp=16d0870e7dbc076cbddfb7e679bd1c922fd04baf;p=platform%2Fcore%2Fuifw%2Ftts.git Merge "Fix the size of app id" into tizen --- diff --git a/server/ttsd_server.c b/server/ttsd_server.c index 24365e5..0c99c3a 100644 --- a/server/ttsd_server.c +++ b/server/ttsd_server.c @@ -102,8 +102,8 @@ static int __synthesis(int uid, const char* credential) } int pid = ttsd_data_get_pid(uid); - char appid[128] = {0, }; - if (0 != aul_app_get_appid_bypid(pid, appid, sizeof(appid))) { + char appid[1024] = {0, }; + if (0 != aul_app_get_appid_bypid(pid, appid, sizeof(appid) - 1)) { SLOG(LOG_ERROR, tts_tag(), "[Server ERROR] Fail to get app id"); } @@ -631,8 +631,8 @@ bool __get_client_for_clean_up(int pid, int uid, app_tts_state_e state, void* us return true; #if 0 - char appid[128] = {0, }; - if (0 != aul_app_get_appid_bypid(pid, appid, sizeof(appid))) { + char appid[1024] = {0, }; + if (0 != aul_app_get_appid_bypid(pid, appid, sizeof(appid) - 1)) { SLOG(LOG_ERROR, tts_tag(), "[Server ERROR] Fail to get app id"); }