Searched refs:result_path_len (Results 1 – 1 of 1) sorted by relevance
51 static char *get_target_filepath(const char *filename, int *result_path_len) in get_target_filepath() argument59 *result_path_len = cwd_len + strlen(filename); in get_target_filepath()61 file_path = (char *)malloc(*result_path_len + 2); in get_target_filepath()63 memset(file_path, 0, *result_path_len + 2); in get_target_filepath()76 *result_path_len = strlen(filename); in get_target_filepath()77 file_path = (char *)malloc(*result_path_len + 2); in get_target_filepath()79 memset(file_path, 0, *result_path_len + 2); in get_target_filepath()81 strncpy(file_path, filename, *result_path_len); in get_target_filepath()82 if (filename[(*result_path_len) - 1] != '/') in get_target_filepath()83 file_path[*result_path_len] = '/'; in get_target_filepath()[all …]