From: sooyeon.kim Date: Fri, 15 Dec 2017 06:45:34 +0000 (+0900) Subject: Fix the size of app id X-Git-Tag: accepted/tizen/unified/20180228.071749~21^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bab71d5de9d15059a5f3147d04d67f653149cf7e;hp=198ea132fcfc997b3228fa4ae5d387d52b62a2f7;p=platform%2Fcore%2Fuifw%2Ftts.git Fix the size of app id Change-Id: I2a3d7ad49a2074854f8a4b25a1d16accdb9fac9a Signed-off-by: sooyeon.kim (cherry picked from commit eb58db3f344793e0f080bee4d65e38e651785a79) --- 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"); }