rem: outputcolormap(FILE *file, XPMColor *colormap, int colorCount)
add: outputcolormap(FILE *file, XPMColor *colormap, int charsPerPixel)
context: outputcolormap(FILE *file, XPMColor *colormap, int colorCount){    int index;    char buf[128];    if (!colormap)	return;    for (index=0; colormap!=NULL; colormap=colormap->next,index++) {	colormap->index = index;	fprintf(file, "\"%s c #%02x%02x%02x\",\n", 		index2str(buf, index, colorCount), colormap->red,		colormap->green, colormap->blue);    }}