From bab71d5de9d15059a5f3147d04d67f653149cf7e Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Fri, 15 Dec 2017 15:45:34 +0900 Subject: [PATCH 1/1] Fix the size of app id Change-Id: I2a3d7ad49a2074854f8a4b25a1d16accdb9fac9a Signed-off-by: sooyeon.kim (cherry picked from commit eb58db3f344793e0f080bee4d65e38e651785a79) --- server/ttsd_server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"); } -- 2.7.4