char *buffer = malloc(strlen(attribute_name)+strlen(value)+4);
char *buffer = (char *)malloc(strlen(attribute_name)+strlen(value)+4);
void XpuSetOneAttribute( Display *pdpy, XPContext pcontext,                          XPAttributes type, const char *attribute_name, const char *value, XPAttrReplacement replacement_rule ){  /* Alloc buffer for sprintf() stuff below */  char *buffer = malloc(strlen(attribute_name)+strlen(value)+4);    if( buffer != NULL )  {    sprintf(buffer, "%s: %s", attribute_name, value);          XpSetAttributes(pdpy, pcontext, type, buffer, replacement_rule);    free(buffer);  }  }