sprintf(firstLine, "begin 644 %s\015\012", data->filename ? data->filename : "");
PR_snprintf(firstLine, sizeof(firstLine), "begin 644 %s\015\012", data->filename ? data->filename : "");
mime_uuencode_buffer(MimeEncoderData *data,					   const char *buffer, PRInt32 size){	/* If this is the first time through, write a begin statement. */	if (!(data->uue_wrote_begin))	{		char firstLine[256];		sprintf(firstLine, "begin 644 %s\015\012", data->filename ? data->filename : "");		data->write_buffer(firstLine, PL_strlen(firstLine), data->closure);		data->uue_wrote_begin = PR_TRUE;		data->current_column = 1; /* initialization unique to uuencode */	}	/* Pick up where we left off. */	while(size > 0)	{		/* If we've reached the end of a line, write the line out. */		if (data->current_column >= UUENCODE_LINE_LIMIT) 		{			/* End of a line. Write the line out. */			mime_uuencode_write_line(data);		}		/* Get the next 3 bytes if we have them, or whatever we can get. */		while(size > 0 && data->in_buffer_count < 3)		{			data->in_buffer[data->in_buffer_count++] = *(buffer++);			size--; data->line_byte_count++;		}				if (data->in_buffer_count == 3)		{			mime_uuencode_convert_triplet(data);		}	}	return 0;}