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")