sprintf(buffer, "%s%s%s", meta_data1, rsc_type, meta_data2);
if ( provider != NULL ) { cl_log(LOG_ERR, "stonithRA plugin: now donnot take the provider" " into account."); return NULL; }  stonith_obj = stonith_new(rsc_type); tmp = stonith_get_info(stonith_obj, ST_CONF_XML); if (tmp == NULL) { cl_log(LOG_WARNING, "stonithRA plugin: cannot get the parameter" " segment of %s's metadata.", rsc_type); tmp = no_parameter_info; }  buffer = g_new(char, strlen(meta_data1) + strlen(meta_data2) + strlen(tmp) + strlen(meta_data3) + 1);  sprintf(buffer, "%s%s%s%s", meta_data1, meta_data2, tmp, meta_data3); stonith_delete(stonith_obj);
get_resource_meta(const char* rsc_type, const char* provider){	char * buffer;	buffer = g_new(char, strlen(meta_data1)+strlen(meta_data2)+40);	sprintf(buffer, "%s%s%s", meta_data1, rsc_type, meta_data2);	return buffer;}