fix build error with tizen6 toolchain(gcc-9) 80/221680/1 accepted/tizen/unified/20200108.131654 submit/tizen/20200107.040259
authorwansu.yoo <wansu.yoo@samsung.com>
Tue, 7 Jan 2020 03:52:15 +0000 (12:52 +0900)
committerwansu.yoo <wansu.yoo@samsung.com>
Tue, 7 Jan 2020 03:53:28 +0000 (12:53 +0900)
Change-Id: I0d21b1c41106d90281539c500091dbb716c1ff10
Signed-off-by: wansu.yoo <wansu.yoo@samsung.com>
CMain/src/main.c

index 09d8c95baf127e323b3ead0969399a53fdbcfa0d..24984162272927c97407d8ff0c7f5ce37db14f83 100644 (file)
@@ -61,11 +61,12 @@ int get_process_name_by_pid(char* process_name, int pid) {
 int request_cb(char* app_name, bool self_select, RequestServiceInfo service_info[], int count, int client_pid){
        int ret = ORCH_ERROR_NONE;
        char process_name[128] = {0, };
+       const char unknown[] = "Unknown";
        ResponseService result;
 
        if (get_process_name_by_pid(process_name, client_pid) != 0) {
                DEBUG("could not get Process name");
-               strncpy(process_name, "Unknown", strlen("Unknown"));
+               strncpy(process_name, unknown, strlen(unknown));
        }
 
        DEBUG("[orchestration_server]\n")