fix build error with tizen6 toolchain(gcc-9)
[platform/core/system/edge-orchestration.git] / CMain / src / main.c
index 09d8c95..2498416 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")