sprintf(s, ",\n\"XPMEXT %s\"", ext->name);
snprintf(s, data_size - (s-dataptr), ",\n\"XPMEXT %s\"", ext->name);
WriteExtensions(dataptr, used_size, ext, num)    char *dataptr;    unsigned int *used_size;    XpmExtension *ext;    unsigned int num;{    unsigned int x, y, a;    char **line;    char *s = dataptr;    for (x = 0; x < num; x++, ext++) {#ifndef VOID_SPRINTF	s +=#endif	sprintf(s, ",\n\"XPMEXT %s\"", ext->name);#ifdef VOID_SPRINTF	s += strlen(ext->name) + 11;#endif	a = ext->nlines;	for (y = 0, line = ext->lines; y < a; y++, line++) {#ifndef VOID_SPRINTF	    s +=#endif	    sprintf(s, ",\n\"%s\"", *line);#ifdef VOID_SPRINTF	    s += strlen(*line) + 4;#endif	}    }    strcpy(s, ",\n\"XPMENDEXT\"");    *used_size += s - dataptr + 13;}