strncpy(pathname, type, RA_MAX_NAME_LENGTH); 
g_strlcpy(pathname, type, RA_MAX_NAME_LENGTH); 
get_ra_pathname(const char* class_path, const char* type, const char* provider,		char pathname[]){	char* type_dup;	char* base_name;	type_dup = strndup(type, RA_MAX_NAME_LENGTH);	if (type_dup == NULL) {		cl_log(LOG_ERR, "No enough memory to allocate.");		pathname[0] = '\0';		return;	}	base_name = basename(type_dup);	if ( strncmp(type, base_name, RA_MAX_NAME_LENGTH) == 0 ) {		/*the type does not include path*/		if (provider) {			snprintf(pathname, RA_MAX_NAME_LENGTH, "%s/%s/%s",				class_path, provider, type);		}else{			snprintf(pathname, RA_MAX_NAME_LENGTH, "%s/%s",				class_path,type);		}	}else{		/*the type includes path, just copy it to pathname*/		strncpy(pathname, type, RA_MAX_NAME_LENGTH);	}	free(type_dup);}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/17609a94271c9a7d03faa2bd3b0fccf4dbee77c9/racommon.c/clean/lib/plugins/lrm/racommon.c