Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 130612 | Differences between
and this patch

Collapse All | Expand All

(-)cndrvcups-capt-1.30/pstocapt2/filter/pstocapt2.c (-2 / +3 lines)
Lines 641-646 Link Here
641
	int numcopies = -1;
641
	int numcopies = -1;
642
	int is_banner = 0;
642
	int is_banner = 0;
643
	char *p_read_buf;
643
	char *p_read_buf;
644
	BufList *ps_data_tail = NULL;
644
645
645
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
646
	while( (read_bytes = read_line(ifd, read_buf, DATA_BUF_SIZE - 1)) > 0 )
646
	{
647
	{
Lines 677-683 Link Here
677
		if( *ps_data == NULL )
678
		if( *ps_data == NULL )
678
			*ps_data = bl;
679
			*ps_data = bl;
679
		else
680
		else
680
			buflist_add_tail(*ps_data, bl);
681
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
681
682
682
		if( read_bytes > 0 )
683
		if( read_bytes > 0 )
683
		{
684
		{
Lines 772-778 Link Here
772
		if( *ps_data == NULL )
773
		if( *ps_data == NULL )
773
			*ps_data = bl;
774
			*ps_data = bl;
774
		else
775
		else
775
			buflist_add_tail(*ps_data, bl);
776
			buflist_add_tail_fast(*ps_data, bl, &ps_data_tail);
776
777
777
		if( read_bytes > 0 )
778
		if( read_bytes > 0 )
778
		{
779
		{

Return to bug 130612