Fix the size of app id 47/167947/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Fri, 15 Dec 2017 06:45:34 +0000 (15:45 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 23 Jan 2018 05:34:44 +0000 (05:34 +0000)
Change-Id: I2a3d7ad49a2074854f8a4b25a1d16accdb9fac9a
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit eb58db3f344793e0f080bee4d65e38e651785a79)

server/ttsd_server.c

index 24365e5..0c99c3a 100644 (file)
@@ -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");
        }