rem: sprintf(filename,"%s/%s",impl->dir,"SEQUENCE");
add: snprintf(filename,sizeof(filename),"%s/%s",impl->dir,"SEQUENCE");
context: int icaldirset_next_uid_number(icaldirset* store){    struct icaldirset_impl *impl = (struct icaldirset_impl*)store;    char sequence = 0;    char temp[128];    char filename[ICAL_PATH_MAX];    char *r;    FILE *f;    struct stat sbuf;    icalerror_check_arg_rz( (store!=0), "store");    sprintf(filename,"%s/%s",impl->dir,"SEQUENCE");    /* Create the file if it does not exist.*/    if (stat(filename,&sbuf) == -1 || !S_ISREG(sbuf.st_mode)){	f = fopen(filename,"w");	if (f != 0){	    fprintf(f,"0");	    fclose(f);	} else {	    icalerror_warn("Can't create SEQUENCE file in icaldirset_next_uid_number");	    return 0;	}	    }        if ( (f = fopen(filename,"r+")) != 0){	rewind(f);	r = fgets(temp,128,f);	if (r == 0){	    sequence = 1;	} else {	    sequence = atoi(temp)+1;	}	rewind(f);	fprintf(f,"%d",sequence);	fclose(f);	return sequence;	    } else {	icalerror_warn("Can't create SEQUENCE file in icaldirset_next_uid_number");	return 0;    }}