strncpy(stream_shm_path, shm_path, PATH_MAX);
stream_shm_path[PATH_MAX - 1] = '\0';
ret = snprintf(cpu_nr, UINT_MAX_STR_LEN, "%u", cpu);
strncpy(stream_shm_path, shm_path, PATH_MAX);
stream_shm_path[PATH_MAX - 1] = '\0';
ret = snprintf(cpu_nr, UINT_MAX_STR_LEN, "%u", cpu);