sprintf(s, "\t%s %s", xpmColorKeys[key - 1], s2);
snprintf(s, sizeof(buf)-(s-buf), "\t%s %s", xpmColorKeys[key - 1], s2);
CreateColors(dataptr, data_size, colors, ncolors, cpp)    char **dataptr;    unsigned int *data_size;    XpmColor *colors;    unsigned int ncolors;    unsigned int cpp;{    char buf[BUFSIZ];    unsigned int a, key, l;    char *s, *s2;    char **defaults;    for (a = 0; a < ncolors; a++, colors++, dataptr++) {	defaults = (char **) colors;	strncpy(buf, *defaults++, cpp);	s = buf + cpp;	for (key = 1; key <= NKEYS; key++, defaults++) {	    if ((s2 = *defaults)) {#ifndef VOID_SPRINTF		s +=#endif		sprintf(s, "\t%s %s", xpmColorKeys[key - 1], s2);#ifdef VOID_SPRINTF		s += strlen(s);#endif	    }	}	l = s - buf + 1;	s = (char *) XpmMalloc(l);	if (!s)	    return (XpmNoMemory);	*data_size += l;	*dataptr = strcpy(s, buf);    }    return (XpmSuccess);}